add a pathological test case for here doc related to eof marker and other ugly corner cases
This commit is contained in:
parent
a4f331d3c3
commit
b509c9c670
7
shell/hush_test/hush-misc/heredoc2.right
Normal file
7
shell/hush_test/hush-misc/heredoc2.right
Normal file
@ -0,0 +1,7 @@
|
||||
exit EOF-f
|
||||
"
|
||||
echo 1
|
||||
moo
|
||||
EOF-f
|
||||
EOF-f f
|
||||
EOF-f
|
10
shell/hush_test/hush-misc/heredoc2.tests
Executable file
10
shell/hush_test/hush-misc/heredoc2.tests
Executable file
@ -0,0 +1,10 @@
|
||||
f=1
|
||||
cat <<- EOF-f
|
||||
exit EOF-f
|
||||
"
|
||||
echo $f
|
||||
moo
|
||||
EOF-f
|
||||
EOF-f f
|
||||
EOF-f
|
||||
EOF-f
|
Loading…
Reference in New Issue
Block a user