blob: 51996007db8623b65a5765731c3999c62974bdfc (
plain) (
blame)
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.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)'
|