hush: fix more obscure ${var%...} cases
function old new delta add_till_closing_paren 313 359 +46 builtin_exit 48 47 -1 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -37,4 +37,5 @@ ababcdcd_tail
|
||||
ababcdcd
|
||||
ab
|
||||
ab
|
||||
ab
|
||||
End
|
||||
|
@@ -47,5 +47,6 @@ echo ${var%\\*}
|
||||
|
||||
a=ab}; echo ${a%\}};
|
||||
a=abc; c=c; echo ${a%${c}}
|
||||
a=ab{{c; echo ${a%`echo {{c`}
|
||||
|
||||
echo End
|
||||
|
Reference in New Issue
Block a user