awk/testdir/T.csconcat
Martijn Dekker 2976507cc1 rename T.concat to T.csconcat to avoid case-insensitive conflict (#64)
On case-insensitive file systems (i.e.: macOS), T.concat and
t.concat are the same file, so these conflicted. This commit
renames T.concat to avoid the conflict.
2020-01-10 12:13:26 +02:00

30 lines
425 B
Plaintext
Executable File

echo T.csconcat: test constant string concatentation
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
diff foo1 foo2 || echo 'BAD: T.csconcat (1)'