hush: fix handling of empty heredoc EOF marker
function old new delta parse_stream 2609 2634 +25 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
4
shell/ash_test/ash-heredoc/heredoc_empty2.right
Normal file
4
shell/ash_test/ash-heredoc/heredoc_empty2.right
Normal file
@@ -0,0 +1,4 @@
|
||||
OK1
|
||||
Ok:0
|
||||
OK2
|
||||
Ok:0
|
||||
14
shell/ash_test/ash-heredoc/heredoc_empty2.tests
Executable file
14
shell/ash_test/ash-heredoc/heredoc_empty2.tests
Executable file
@@ -0,0 +1,14 @@
|
||||
unset a
|
||||
|
||||
# Heredoc with empty delimiter
|
||||
cat <<- ""
|
||||
OK1
|
||||
|
||||
echo Ok:$?
|
||||
|
||||
# Heredoc with empty delimiter
|
||||
cat <<- ""
|
||||
OK2
|
||||
|
||||
|
||||
echo Ok:$?
|
||||
Reference in New Issue
Block a user