diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-21 01:15:42 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-21 01:15:42 +0200 |
commit | 4d8e5fdc1d4bb14ebfecdf6ce19e15024103659f (patch) | |
tree | da52c662b6253597bcaa9a0f5cfa5f2d75c0164d /shell/hush_test/hush-vars/param_expand_bash_substring.right | |
parent | 53b513331add89e83c1327579f3da91ebbe97570 (diff) | |
download | busybox-4d8e5fdc1d4bb14ebfecdf6ce19e15024103659f.tar.gz |
hush: optional support for ${var:N:M} bashism
function old new delta
expand_vars_to_list 1999 2183 +184
handle_dollar 682 623 -59
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-vars/param_expand_bash_substring.right')
-rw-r--r-- | shell/hush_test/hush-vars/param_expand_bash_substring.right | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/param_expand_bash_substring.right b/shell/hush_test/hush-vars/param_expand_bash_substring.right new file mode 100644 index 000000000..9cd465938 --- /dev/null +++ b/shell/hush_test/hush-vars/param_expand_bash_substring.right @@ -0,0 +1,29 @@ +hush: syntax error: unterminated ${name} +hush: syntax error: unterminated ${name} +hush: syntax error: unterminated ${name} +hush: syntax error: unterminated ${name} +0123456789 +1 =|| +1:1 =|| +1:1:2=|| +1::2 =|| +1 =|0123| +1:1 =|123| +1:1:2=|12| +1::2 =|01| +f =|| +f:1 =|| +f:1:2=|| +f::2 =|| +f =|| +f:1 =|| +f:1:2=|| +f::2 =|| +f =|a| +f:1 =|| +f:1:2=|| +f::2 =|a| +f =|0123456789| +f:1 =|123456789| +f:1:2=|12| +f::2 =|01| |