summaryrefslogtreecommitdiffstats
path: root/tests/heredoc.right
blob: f6541dcafc129bdf7d381a13d7c7b1b048efaa25 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
there
one - alpha
two - beta
three - gamma
hi\
there$a
stuff
hi\
there
EO\
F
hi
hi
tab 1
tab 2
tab 3
abc
def ghi
jkl mno
fff is a function
fff () 
{ 
    ed ${TMPDIR}/foo <<ENDOFINPUT > /dev/null
/^name/d
w
q
ENDOFINPUT

    aa=1
}
fff is a function
fff () 
{ 
    ed ${TMPDIR}/foo <<ENDOFINPUT > /dev/null
/^name/d
w
q
ENDOFINPUT

    aa=1
}
foo is a function
foo () 
{ 
    echo;
    cat <<END
bar
END

    cat <<EOF
qux
EOF

}

bar
qux

bar
qux
abc def geh
./heredoc3.sub: line 10: warning: here-document at line 8 delimited by end-of-file (wanted `EOF')
= here is the text =
./heredoc3.sub: line 16: warning: here-document at line 14 delimited by end-of-file (wanted `EOF')
this paren ) is not a problem
./heredoc3.sub: line 22: warning: here-document at line 20 delimited by end-of-file (wanted `EOF')
these balanced parens ( ) are not a problem
./heredoc3.sub: line 28: warning: here-document at line 26 delimited by end-of-file (wanted `EOF')
quoted balanced parens \( ) are not a problem either
more text in a subshell
some more text in a different subshell
end
hello
hello
ENDEND
end ENDEND
hello
end hello
end x*x
helloEND
end helloEND
hello
\END
end hello<NL>\END
./heredoc3.sub: line 85: warning: here-document at line 83 delimited by end-of-file (wanted `EOF')
./heredoc3.sub: line 86: syntax error: unexpected end of file
heredoc1
EOF
Ok:0
argv[1] = <onetwo>
argv[2] = <threefour>
argv[1] = <two>
argv[2] = <threefi>
argv[3] = <ve>
comsub here-string
./heredoc.tests: line 105: warning: here-document at line 103 delimited by end-of-file (wanted `EOF')
hi
there