hush: fix ${##}, ${#?}, ${#!} handling
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Jul 2017 22:07:27 +0000 (00:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 25 Jul 2017 22:07:27 +0000 (00:07 +0200)
commit2093ad296f8a4528ad0e106b52074871a2bf070e
treed94c965340ab56f3394b4c3fba675df29ed43f80
parent1e3e2ccd5dd280371c9ca29c0e0304a0d40592af
hush: fix ${##}, ${#?}, ${#!} handling

function                                             old     new   delta
parse_dollar                                         786     820     +34
expand_one_var                                      1579    1592     +13
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/0 up/down: 47/0)               Total: 47 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-vars/param_expand_alt.tests
shell/ash_test/ash-vars/param_expand_len1.right [new file with mode: 0644]
shell/ash_test/ash-vars/param_expand_len1.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-vars/param_expand_alt.tests
shell/hush_test/hush-vars/param_expand_len1.right [new file with mode: 0644]
shell/hush_test/hush-vars/param_expand_len1.tests [new file with mode: 0755]