aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-04-02 17:25:18 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-04-02 17:25:18 +0200
commitabf755615e5f20c3bbe7534fa29c72fd684ea616 (patch)
tree281642aba72686a4179456235c73c3392d5a5bf5 /shell/ash_test
parent9a95df90463ee0eddc0585f0e5affa827701fdfb (diff)
downloadbusybox-w32-abf755615e5f20c3bbe7534fa29c72fd684ea616.tar.gz
busybox-w32-abf755615e5f20c3bbe7534fa29c72fd684ea616.tar.bz2
busybox-w32-abf755615e5f20c3bbe7534fa29c72fd684ea616.zip
hush: fix a backslash-removal bug in case
function old new delta run_list 1270 1053 -217 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r--shell/ash_test/ash-quoting/bkslash_case2.right3
-rwxr-xr-xshell/ash_test/ash-quoting/bkslash_case2.tests13
2 files changed, 16 insertions, 0 deletions
diff --git a/shell/ash_test/ash-quoting/bkslash_case2.right b/shell/ash_test/ash-quoting/bkslash_case2.right
new file mode 100644
index 000000000..8d2038bff
--- /dev/null
+++ b/shell/ash_test/ash-quoting/bkslash_case2.right
@@ -0,0 +1,3 @@
1ok1
2ok2
3Ok:0
diff --git a/shell/ash_test/ash-quoting/bkslash_case2.tests b/shell/ash_test/ash-quoting/bkslash_case2.tests
new file mode 100755
index 000000000..348ddc236
--- /dev/null
+++ b/shell/ash_test/ash-quoting/bkslash_case2.tests
@@ -0,0 +1,13 @@
1x='\abc'
2
3case "$x" in
4\\*) echo ok1;;
5*) echo BUG1;;
6esac
7
8case $x in
9\\*) echo ok2;;
10*) echo BUG2;;
11esac
12
13echo Ok:$?