aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-quoting
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-08-05 20:03:04 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2018-08-05 20:03:04 +0200
commit77c18491b8647832422be3f95187e5aa5270e044 (patch)
tree11719b1fa94c20c495a10fa06620c75e315831eb /shell/hush_test/hush-quoting
parent2596f412cd02d4b040262e5f40de2e7a7e6b32cf (diff)
downloadbusybox-77c18491b8647832422be3f95187e5aa5270e044.tar.gz
hush: adopt ash's quote_in_varexp1.tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-quoting')
-rw-r--r--shell/hush_test/hush-quoting/quote_in_varexp1.right2
-rwxr-xr-xshell/hush_test/hush-quoting/quote_in_varexp1.tests2
2 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-quoting/quote_in_varexp1.right b/shell/hush_test/hush-quoting/quote_in_varexp1.right
new file mode 100644
index 000000000..99a0aea7c
--- /dev/null
+++ b/shell/hush_test/hush-quoting/quote_in_varexp1.right
@@ -0,0 +1,2 @@
+''
+Ok:0
diff --git a/shell/hush_test/hush-quoting/quote_in_varexp1.tests b/shell/hush_test/hush-quoting/quote_in_varexp1.tests
new file mode 100755
index 000000000..1b97b0556
--- /dev/null
+++ b/shell/hush_test/hush-quoting/quote_in_varexp1.tests
@@ -0,0 +1,2 @@
+x="''''"; echo "${x#"${x+''}"''}"
+echo Ok:$?