aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-05-28 16:49:11 +0200
committerMike Frysinger <vapier@gentoo.org>2009-07-22 05:19:08 -0400
commit078d55028e4f4e9e4ba9216580a37778c40eca5c (patch)
tree6d8a625f7fe3059908fb4372dcf627f4bb3a3104 /shell/hush_test
parentbbc31e5f3cb2482f752ab6251b1d7491b5ea73eb (diff)
downloadbusybox-w32-078d55028e4f4e9e4ba9216580a37778c40eca5c.tar.gz
busybox-w32-078d55028e4f4e9e4ba9216580a37778c40eca5c.tar.bz2
busybox-w32-078d55028e4f4e9e4ba9216580a37778c40eca5c.zip
hush: fix bug 353 (wrong handling of \x in assignments)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-parsing/escape5.right9
-rwxr-xr-xshell/hush_test/hush-parsing/escape5.tests7
2 files changed, 16 insertions, 0 deletions
diff --git a/shell/hush_test/hush-parsing/escape5.right b/shell/hush_test/hush-parsing/escape5.right
new file mode 100644
index 000000000..3cdd393c7
--- /dev/null
+++ b/shell/hush_test/hush-parsing/escape5.right
@@ -0,0 +1,9 @@
1a\nb\nc\n
2a
3b
4c
5a\nb\nc\n
6a
7b
8c
9Done
diff --git a/shell/hush_test/hush-parsing/escape5.tests b/shell/hush_test/hush-parsing/escape5.tests
new file mode 100755
index 000000000..337a98ec7
--- /dev/null
+++ b/shell/hush_test/hush-parsing/escape5.tests
@@ -0,0 +1,7 @@
1v="a\nb\nc\n"
2echo "$v"
3printf "$v"
4v='a\nb\nc\n'
5echo "$v"
6printf "$v"
7echo Done