aboutsummaryrefslogtreecommitdiff
path: root/testdir/T.concat
blob: c6bd016210b66a4db0a0b707ac974682d43c594f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
echo T.concat: 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.concat (1)'