hush: fix heredoc handling in the "cmd <<EOF ;<newline>" case
function old new delta parse_stream 2759 2787 +28 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1
shell/hush_test/hush-heredoc/heredoc9.right
Normal file
1
shell/hush_test/hush-heredoc/heredoc9.right
Normal file
@ -0,0 +1 @@
|
||||
hello
|
9
shell/hush_test/hush-heredoc/heredoc9.tests
Executable file
9
shell/hush_test/hush-heredoc/heredoc9.tests
Executable file
@ -0,0 +1,9 @@
|
||||
echo hello >greeting
|
||||
cat <<EOF &&
|
||||
$(cat greeting)
|
||||
EOF
|
||||
{
|
||||
echo $?
|
||||
cat greeting
|
||||
} >/dev/null
|
||||
rm greeting
|
1
shell/hush_test/hush-heredoc/heredocA.right
Normal file
1
shell/hush_test/hush-heredoc/heredocA.right
Normal file
@ -0,0 +1 @@
|
||||
Ok
|
4
shell/hush_test/hush-heredoc/heredocA.tests
Executable file
4
shell/hush_test/hush-heredoc/heredocA.tests
Executable file
@ -0,0 +1,4 @@
|
||||
{ cat <<EOF ;
|
||||
Ok
|
||||
EOF
|
||||
}
|
Reference in New Issue
Block a user