hush: fix handling of \<eof> in double-quoted strings
function old new delta encode_string 268 250 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
2
shell/hush_test/hush-parsing/bkslash_eof2.right
Normal file
2
shell/hush_test/hush-parsing/bkslash_eof2.right
Normal file
@ -0,0 +1,2 @@
|
||||
hush: syntax error: unterminated "
|
||||
One:1
|
4
shell/hush_test/hush-parsing/bkslash_eof2.tests
Executable file
4
shell/hush_test/hush-parsing/bkslash_eof2.tests
Executable file
@ -0,0 +1,4 @@
|
||||
printf 'echo "unterminated string\\' >test.tmp.sh
|
||||
. ./test.tmp.sh
|
||||
echo One:$?
|
||||
rm -f test.tmp.sh
|
Reference in New Issue
Block a user