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>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
v
|
||||
Ok:0
|
3
shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests
Executable file
3
shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests
Executable file
@@ -0,0 +1,3 @@
|
||||
v=v
|
||||
echo ${v//}
|
||||
echo Ok:$?
|
2
shell/hush_test/hush-vars/var_bash_repl_empty_var.right
Normal file
2
shell/hush_test/hush-vars/var_bash_repl_empty_var.right
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
Ok:0
|
3
shell/hush_test/hush-vars/var_bash_repl_empty_var.tests
Executable file
3
shell/hush_test/hush-vars/var_bash_repl_empty_var.tests
Executable file
@@ -0,0 +1,3 @@
|
||||
v=''
|
||||
echo ${v/*/w}
|
||||
echo Ok:$?
|
Reference in New Issue
Block a user