summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-quoting
diff options
context:
space:
mode:
authorDenys Vlasenko2018-04-11 13:47:59 +0200
committerDenys Vlasenko2018-04-11 13:47:59 +0200
commit34179956f96370f5a53e73073d984d62135cd037 (patch)
treefb203652077aca11c41f69a66b948bc64873a126 /shell/ash_test/ash-quoting
parent680c3016a2dddc3edb4d79868a728e899638e2c4 (diff)
downloadbusybox-34179956f96370f5a53e73073d984d62135cd037.zip
busybox-34179956f96370f5a53e73073d984d62135cd037.tar.gz
hush: fix "$v" expansion in case patterns when v='[a]'
function old new delta run_list 1053 1063 +10 setup_redirects 311 320 +9 encode_then_expand_string 135 142 +7 run_pipe 1784 1789 +5 expand_assignments 81 86 +5 expand_string_to_string 124 125 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 6/0 up/down: 37/0) Total: 37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-quoting')
-rw-r--r--shell/ash_test/ash-quoting/case_glob1.right1
-rwxr-xr-xshell/ash_test/ash-quoting/case_glob1.tests8
2 files changed, 9 insertions, 0 deletions
diff --git a/shell/ash_test/ash-quoting/case_glob1.right b/shell/ash_test/ash-quoting/case_glob1.right
new file mode 100644
index 0000000..b478595
--- /dev/null
+++ b/shell/ash_test/ash-quoting/case_glob1.right
@@ -0,0 +1 @@
+s
diff --git a/shell/ash_test/ash-quoting/case_glob1.tests b/shell/ash_test/ash-quoting/case_glob1.tests
new file mode 100755
index 0000000..8dbbc0f
--- /dev/null
+++ b/shell/ash_test/ash-quoting/case_glob1.tests
@@ -0,0 +1,8 @@
+g='[3](a)(b)(c)'
+s='[3](a)(b)(c)'
+case $g in
+"$s") echo s
+ ;;
+*) echo "*"
+ ;;
+esac