hush: support ${var:EXPR:EXPR}!
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 May 2010 01:12:29 +0000 (03:12 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 22 May 2010 01:12:29 +0000 (03:12 +0200)
commit1e811b12317d0eab4e78d848caa640cca497a0a7
treeef60262af7944dfe557542bec9e1fb8bea367b60
parentddc62f64baad8abdeb587b13afe8d47fb347981c
hush: support ${var:EXPR:EXPR}!

function                                             old     new   delta
handle_dollar                                        574     681    +107
expand_and_evaluate_arith                              -      77     +77
expand_vars_to_list                                 2302    2374     +72
add_till_closing_bracket                             359     368      +9
builtin_exit                                          48      47      -1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 3/1 up/down: 265/-1)            Total: 264 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
shell/hush_test/hush-vars/param_expand_bash_substring.right
shell/hush_test/hush-vars/param_expand_bash_substring.tests