summaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko2018-07-23 15:43:57 +0200
committerDenys Vlasenko2018-07-23 15:43:57 +0200
commitd73cdbf84c9c7d509baf69eb3256dcaf733f4d93 (patch)
tree676c221aa69cf5922890993baccc9c9040d7f4d8 /shell/hush_test
parentca2f831ead327d98ab3374acb3b07ad7632ea02d (diff)
downloadbusybox-d73cdbf84c9c7d509baf69eb3256dcaf733f4d93.zip
busybox-d73cdbf84c9c7d509baf69eb3256dcaf733f4d93.tar.gz
hush: fix handling of heredocs starting with empty lines
function old new delta parse_stream 2748 2759 +11 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-heredoc/heredoc_empty3.right2
-rwxr-xr-xshell/hush_test/hush-heredoc/heredoc_empty3.tests4
2 files changed, 6 insertions, 0 deletions
diff --git a/shell/hush_test/hush-heredoc/heredoc_empty3.right b/shell/hush_test/hush-heredoc/heredoc_empty3.right
new file mode 100644
index 0000000..0b54a9c
--- /dev/null
+++ b/shell/hush_test/hush-heredoc/heredoc_empty3.right
@@ -0,0 +1,2 @@
+
+Ok
diff --git a/shell/hush_test/hush-heredoc/heredoc_empty3.tests b/shell/hush_test/hush-heredoc/heredoc_empty3.tests
new file mode 100755
index 0000000..828c2dd
--- /dev/null
+++ b/shell/hush_test/hush-heredoc/heredoc_empty3.tests
@@ -0,0 +1,4 @@
+cat <<EOF
+
+Ok
+EOF