aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/here-document.test
blob: d6b21fd337c36f1b30a0cf081519b9ba2d4bb0eb (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

$* <<EOI >>EOO  # blank-lines
cmd <<EOF
foo

bar

EOF
EOI
cmd <<EOF
foo

bar

EOF
EOO

# quote
#
# Note: they are still recognized in eval contexts.
#
$* <<EOI >>EOO
cmd <<EOF
'single'
"double"
b'o't"h"
('single' "double")
EOF
EOI
cmd <<EOF
'single'
"double"
b'o't"h"
single double
EOF
EOO