diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-11 01:15:33 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-11 01:15:33 +0200 |
commit | 89e9d5534d0e8879803ed9dbb25dff3989c31202 (patch) | |
tree | b1f7c630418dd97e4fad62d114381d0297460d52 /shell/ash_test | |
parent | 3632cb15f16a7596a68dccfd66a2ad9496bf9fd9 (diff) | |
download | busybox-w32-89e9d5534d0e8879803ed9dbb25dff3989c31202.tar.gz busybox-w32-89e9d5534d0e8879803ed9dbb25dff3989c31202.tar.bz2 busybox-w32-89e9d5534d0e8879803ed9dbb25dff3989c31202.zip |
hush: do not drop backslash from eval 'echo ok\'
newer bash does not drop it, most other shells too
function old new delta
unbackslash 39 57 +18
parse_stream 2753 2751 -2
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 18/-2) Total: 16 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-parsing/bkslash_eof1.right | 1 | ||||
-rwxr-xr-x | shell/ash_test/ash-parsing/bkslash_eof1.tests | 1 | ||||
-rw-r--r-- | shell/ash_test/ash-redir/redir_exec1.right | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/shell/ash_test/ash-parsing/bkslash_eof1.right b/shell/ash_test/ash-parsing/bkslash_eof1.right new file mode 100644 index 000000000..6c6df0b0c --- /dev/null +++ b/shell/ash_test/ash-parsing/bkslash_eof1.right | |||
@@ -0,0 +1 @@ | |||
ok\ | |||
diff --git a/shell/ash_test/ash-parsing/bkslash_eof1.tests b/shell/ash_test/ash-parsing/bkslash_eof1.tests new file mode 100755 index 000000000..97629cb13 --- /dev/null +++ b/shell/ash_test/ash-parsing/bkslash_eof1.tests | |||
@@ -0,0 +1 @@ | |||
eval 'echo ok\' | |||
diff --git a/shell/ash_test/ash-redir/redir_exec1.right b/shell/ash_test/ash-redir/redir_exec1.right index d4393d10c..c98455bf5 100644 --- a/shell/ash_test/ash-redir/redir_exec1.right +++ b/shell/ash_test/ash-redir/redir_exec1.right | |||
@@ -1,2 +1,2 @@ | |||
1 | redir_exec1.tests: line 1: can't create /cant/be/created: nonexistent directory | 1 | ./redir_exec1.tests: line 1: can't create /cant/be/created: nonexistent directory |
2 | First | 2 | First |