hush: fix bug 353 (wrong handling of \x in assignments)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
9
shell/hush_test/hush-parsing/escape5.right
Normal file
9
shell/hush_test/hush-parsing/escape5.right
Normal file
@@ -0,0 +1,9 @@
|
||||
a\nb\nc\n
|
||||
a
|
||||
b
|
||||
c
|
||||
a\nb\nc\n
|
||||
a
|
||||
b
|
||||
c
|
||||
Done
|
7
shell/hush_test/hush-parsing/escape5.tests
Executable file
7
shell/hush_test/hush-parsing/escape5.tests
Executable file
@@ -0,0 +1,7 @@
|
||||
v="a\nb\nc\n"
|
||||
echo "$v"
|
||||
printf "$v"
|
||||
v='a\nb\nc\n'
|
||||
echo "$v"
|
||||
printf "$v"
|
||||
echo Done
|
Reference in New Issue
Block a user