From abf755615e5f20c3bbe7534fa29c72fd684ea616 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 2 Apr 2018 17:25:18 +0200 Subject: hush: fix a backslash-removal bug in case function old new delta run_list 1270 1053 -217 Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-quoting/bkslash_case2.right | 3 +++ shell/ash_test/ash-quoting/bkslash_case2.tests | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 shell/ash_test/ash-quoting/bkslash_case2.right create mode 100755 shell/ash_test/ash-quoting/bkslash_case2.tests (limited to 'shell/ash_test/ash-quoting') 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 0000000..8d2038b --- /dev/null +++ b/shell/ash_test/ash-quoting/bkslash_case2.right @@ -0,0 +1,3 @@ +ok1 +ok2 +Ok: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 0000000..348ddc2 --- /dev/null +++ b/shell/ash_test/ash-quoting/bkslash_case2.tests @@ -0,0 +1,13 @@ +x='\abc' + +case "$x" in +\\*) echo ok1;; +*) echo BUG1;; +esac + +case $x in +\\*) echo ok2;; +*) echo BUG2;; +esac + +echo Ok:$? -- cgit v1.1