You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
425 B
30 lines
425 B
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)'
|