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>
This commit is contained in:
3
shell/hush_test/hush-quoting/bkslash_case2.right
Normal file
3
shell/hush_test/hush-quoting/bkslash_case2.right
Normal file
@@ -0,0 +1,3 @@
|
||||
ok1
|
||||
ok2
|
||||
Ok:0
|
13
shell/hush_test/hush-quoting/bkslash_case2.tests
Executable file
13
shell/hush_test/hush-quoting/bkslash_case2.tests
Executable file
@@ -0,0 +1,13 @@
|
||||
x='\abc'
|
||||
|
||||
case "$x" in
|
||||
\\*) echo ok1;;
|
||||
*) echo BUG1;;
|
||||
esac
|
||||
|
||||
case $x in
|
||||
\\*) echo ok2;;
|
||||
*) echo BUG2;;
|
||||
esac
|
||||
|
||||
echo Ok:$?
|
Reference in New Issue
Block a user