summaryrefslogtreecommitdiffhomepage
path: root/shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-01-25 14:07:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-01-25 14:07:40 +0100
commitcba79a87f86f4f8d3c5b21ff7024b392402cf287 (patch)
tree02f18db88a950e77a471960aa3147ca87ab9f2a0 /shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests
parent0ca3198f9333b363ced46bfabf51c0d6b111c875 (diff)
hush: fix two corner cases in ${v/pattern/repl}. Closes 10686
function old new delta expand_one_var 1592 1618 +26 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests')
-rwxr-xr-xshell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests b/shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests
new file mode 100755
index 000000000..6e8aa2afa
--- /dev/null
+++ b/shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests
@@ -0,0 +1,3 @@
+v=v
+echo ${v//}
+echo Ok:$?