summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-heredoc/heredoc9.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2018-07-23 16:31:21 +0200
committerDenys Vlasenko2018-07-23 16:31:21 +0200
commit3675c37b9b0bb4ba565b690b95b0b9c7d0ce8123 (patch)
tree889b8b684811dd9ff0dca01e6514136adb66a1e8 /shell/hush_test/hush-heredoc/heredoc9.tests
parentd73cdbf84c9c7d509baf69eb3256dcaf733f4d93 (diff)
downloadbusybox-3675c37b9b0bb4ba565b690b95b0b9c7d0ce8123.zip
busybox-3675c37b9b0bb4ba565b690b95b0b9c7d0ce8123.tar.gz
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>
Diffstat (limited to 'shell/hush_test/hush-heredoc/heredoc9.tests')
-rwxr-xr-xshell/hush_test/hush-heredoc/heredoc9.tests9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/hush_test/hush-heredoc/heredoc9.tests b/shell/hush_test/hush-heredoc/heredoc9.tests
new file mode 100755
index 0000000..96c227c
--- /dev/null
+++ b/shell/hush_test/hush-heredoc/heredoc9.tests
@@ -0,0 +1,9 @@
+echo hello >greeting
+cat <<EOF &&
+$(cat greeting)
+EOF
+{
+ echo $?
+ cat greeting
+} >/dev/null
+rm greeting