]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/heredoc.right
Imported from ../bash-4.0.tar.gz.
[thirdparty/bash.git] / tests / heredoc.right
CommitLineData
ccc6cda3 1there
d166f048
JA
2one - alpha
3two - beta
4three - gamma
ccc6cda3
JA
5hi\
6there$a
7stuff
8hi\
9there
10EO\
11F
12hi
13hi
d166f048
JA
14tab 1
15tab 2
16tab 3
17abc
18def ghi
19jkl mno
20fff is a function
21fff ()
22{
0628567a 23 ed /tmp/foo > /dev/null <<ENDOFINPUT
d166f048
JA
24/^name/d
25w
26q
27ENDOFINPUT
28
29 aa=1
30}
31fff is a function
32fff ()
33{
0628567a 34 ed /tmp/foo > /dev/null <<ENDOFINPUT
d166f048
JA
35/^name/d
36w
37q
38ENDOFINPUT
39
40 aa=1
41}
17345e5a
JA
42foo is a function
43foo ()
44{
45 echo;
46 cat <<END
47bar
48END
49
50 cat <<EOF
51qux
52EOF
53
54}
55
56bar
57qux
58
59bar
60qux
61./heredoc.tests: line 96: warning: here-document at line 94 delimited by end-of-file (wanted `EOF')
ccc6cda3
JA
62hi
63there