hush: fix two corner cases in ${v/pattern/repl}. Closes 10686
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 25 Jan 2018 13:07:40 +0000 (14:07 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 25 Jan 2018 13:07:40 +0000 (14:07 +0100)
commitcba79a87f86f4f8d3c5b21ff7024b392402cf287
tree02f18db88a950e77a471960aa3147ca87ab9f2a0
parent0ca3198f9333b363ced46bfabf51c0d6b111c875
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>
shell/hush.c
shell/hush_test/hush-vars/var_bash_repl_empty_pattern.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_bash_repl_empty_pattern.tests [new file with mode: 0755]
shell/hush_test/hush-vars/var_bash_repl_empty_var.right [new file with mode: 0644]
shell/hush_test/hush-vars/var_bash_repl_empty_var.tests [new file with mode: 0755]