hush: do not drop backslash from eval 'echo ok\'
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 10 Apr 2018 23:15:33 +0000 (01:15 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 10 Apr 2018 23:15:33 +0000 (01:15 +0200)
commit89e9d5534d0e8879803ed9dbb25dff3989c31202
treeb1f7c630418dd97e4fad62d114381d0297460d52
parent3632cb15f16a7596a68dccfd66a2ad9496bf9fd9
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>
shell/ash.c
shell/ash_test/ash-parsing/bkslash_eof1.right [new file with mode: 0644]
shell/ash_test/ash-parsing/bkslash_eof1.tests [new file with mode: 0755]
shell/ash_test/ash-redir/redir_exec1.right
shell/hush.c
shell/hush_test/hush-parsing/bkslash_eof1.right