2020-01-10 05:13:26 -05:00
|
|
|
echo T.csconcat: test constant string concatentation
|
2020-01-05 14:18:36 -05:00
|
|
|
|
|
|
|
awk=${awk-../a.out}
|
|
|
|
|
|
|
|
$awk '
|
|
|
|
BEGIN {
|
|
|
|
$0 = "aaa"
|
|
|
|
print "abcdef" " " $0
|
|
|
|
}
|
|
|
|
BEGIN { print "hello" "world"; print helloworld }
|
|
|
|
BEGIN {
|
|
|
|
print " " "hello"
|
|
|
|
print "hello" " "
|
|
|
|
print "hello" " " "world"
|
|
|
|
print "hello" (" " "world")
|
|
|
|
}
|
|
|
|
' > foo1
|
|
|
|
|
|
|
|
cat << \EOF > foo2
|
|
|
|
abcdef aaa
|
|
|
|
helloworld
|
|
|
|
|
|
|
|
hello
|
|
|
|
hello
|
|
|
|
hello world
|
|
|
|
hello world
|
|
|
|
EOF
|
|
|
|
|
2020-01-10 05:13:26 -05:00
|
|
|
diff foo1 foo2 || echo 'BAD: T.csconcat (1)'
|