xref: /freebsd/contrib/one-true-awk/testdir/T.csconcat (revision 31ba4ce8898f9dfa5e7f054fdbc26e50a599a6e3)
1echo T.csconcat: test constant string concatentation
2
3awk=${awk-../a.out}
4
5$awk '
6BEGIN {
7	$0 = "aaa"
8	print "abcdef" " " $0
9}
10BEGIN { print "hello" "world"; print helloworld }
11BEGIN {
12 	print " " "hello"
13 	print "hello" " "
14 	print "hello" " " "world"
15 	print "hello" (" " "world")
16}
17' > foo1
18
19cat << \EOF > foo2
20abcdef aaa
21helloworld
22
23 hello
24hello
25hello world
26hello world
27EOF
28
29diff foo1 foo2 || echo 'BAD: T.csconcat (1)'
30