diff options
author | Denys Vlasenko | 2010-05-21 19:52:01 +0200 |
---|---|---|
committer | Denys Vlasenko | 2010-05-21 19:52:01 +0200 |
commit | 7436950a7516d1f4498285ccc81bf6d926f3af5e (patch) | |
tree | 392a5f5eaed215eaacaded7bc92456729161e1d0 /shell/hush_test/hush-vars/var_posix1.tests | |
parent | 3f78cec34745069cf0a92a16dfccff66d98ef5ba (diff) | |
download | busybox-7436950a7516d1f4498285ccc81bf6d926f3af5e.zip busybox-7436950a7516d1f4498285ccc81bf6d926f3af5e.tar.gz |
hush: fix a=abc; c=c; echo ${a%${c}}
function old new delta
expand_vars_to_list 2229 2302 +73
add_till_closing_paren 286 313 +27
handle_dollar 623 574 -49
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 100/-49) Total: 51 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/var_posix1.tests')
-rwxr-xr-x | shell/hush_test/hush-vars/var_posix1.tests | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/shell/hush_test/hush-vars/var_posix1.tests b/shell/hush_test/hush-vars/var_posix1.tests index c1f6409..e48fd98 100755 --- a/shell/hush_test/hush-vars/var_posix1.tests +++ b/shell/hush_test/hush-vars/var_posix1.tests @@ -31,7 +31,7 @@ echo ${var##?} echo ${var#*} echo Empty:${var##*} echo ${var#}}_tail -# UNFIXED BUG: echo ${var#\}}_tail +echo ${var#\}}_tail echo ${var%cd} echo ${var%%cd} @@ -42,7 +42,10 @@ echo ${var%%?} echo ${var%*} echo Empty:${var%%*} echo ${var#}}_tail -# UNFIXED BUG: echo ${var#\}}_tail +echo ${var#\}}_tail echo ${var%\\*} -echo end +a=ab}; echo ${a%\}}; +a=abc; c=c; echo ${a%${c}} + +echo End |