hush: fix a='a\\'; echo "${a%\\\\}"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
3
shell/hush_test/hush-quoting/squote_in_varexp1.right
Normal file
3
shell/hush_test/hush-quoting/squote_in_varexp1.right
Normal file
@@ -0,0 +1,3 @@
|
||||
Nothing:
|
||||
Nothing:
|
||||
Ok:0
|
||||
4
shell/hush_test/hush-quoting/squote_in_varexp1.tests
Executable file
4
shell/hush_test/hush-quoting/squote_in_varexp1.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
x='\\\\'
|
||||
printf Nothing:'%s\n' ${x#\\\\\\\\}
|
||||
printf Nothing:'%s\n' "${x#\\\\\\\\}"
|
||||
echo Ok:$?
|
||||
3
shell/hush_test/hush-quoting/squote_in_varexp2.right
Normal file
3
shell/hush_test/hush-quoting/squote_in_varexp2.right
Normal file
@@ -0,0 +1,3 @@
|
||||
Nothing:
|
||||
Nothing:
|
||||
Ok:0
|
||||
4
shell/hush_test/hush-quoting/squote_in_varexp2.tests
Executable file
4
shell/hush_test/hush-quoting/squote_in_varexp2.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
x='\\\\'
|
||||
printf Nothing:'%s\n' ${x#'\\\\'}
|
||||
printf Nothing:'%s\n' "${x#'\\\\'}"
|
||||
echo Ok:$?
|
||||
Reference in New Issue
Block a user