aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-quoting/squote_in_varexp2.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-03-02 20:48:36 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-03-02 20:48:36 +0100
commitd4802c6243e64e28690577bc0bb4f030581c496b (patch)
treee1b3785c46bd4361419fb22718b319cf3a835658 /shell/ash_test/ash-quoting/squote_in_varexp2.tests
parent55f8133a4fb207d6fecd02f43c36809d3c2f6672 (diff)
downloadbusybox-d4802c6243e64e28690577bc0bb4f030581c496b.tar.gz
hush: fix a='a\\'; echo "${a%\\\\}"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-quoting/squote_in_varexp2.tests')
-rwxr-xr-xshell/ash_test/ash-quoting/squote_in_varexp2.tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ash_test/ash-quoting/squote_in_varexp2.tests b/shell/ash_test/ash-quoting/squote_in_varexp2.tests
new file mode 100755
index 000000000..806ad12b9
--- /dev/null
+++ b/shell/ash_test/ash-quoting/squote_in_varexp2.tests
@@ -0,0 +1,4 @@
+x='\\\\'
+printf Nothing:'%s\n' ${x#'\\\\'}
+printf Nothing:'%s\n' "${x#'\\\\'}"
+echo Ok:$?