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