diff options
author | Denys Vlasenko | 2018-07-24 14:03:18 +0200 |
---|---|---|
committer | Denys Vlasenko | 2018-07-24 14:03:18 +0200 |
commit | dfc739476343244371636d58561f7b743faf50d6 (patch) | |
tree | 7e41ed6fa9688c819f4d525255402179af6e0d0f /shell/hush_test | |
parent | 474cb205554919e4d017b7aeb3722d6a4ffee41d (diff) | |
download | busybox-dfc739476343244371636d58561f7b743faf50d6.zip busybox-dfc739476343244371636d58561f7b743faf50d6.tar.gz |
hush: handle backslash-newline in heredoc terminators
function old new delta
fetch_heredocs 479 527 +48
(ash fails this test)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.tests | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.right b/shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.right new file mode 100644 index 0000000..3d79316 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.right @@ -0,0 +1 @@ +Ok1 diff --git a/shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.tests b/shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.tests new file mode 100755 index 0000000..1d2a265 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc_bkslash_newline2.tests @@ -0,0 +1,4 @@ +cat <<EOF +Ok1 +EO\ +F |