hush: support ${VAR:N:-M}
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Jul 2017 14:46:57 +0000 (16:46 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 17 Jul 2017 14:46:57 +0000 (16:46 +0200)
commite32b6503e75d5bcbf8ffff69cafb09523ff2b482
treed0d68a95f68d55215b86f792e11e89b1e75b1ed1
parent203fd7bc66b869e5022ad33d26065e69eaaaf66b
hush: support ${VAR:N:-M}

function                                             old     new   delta
expand_one_var                                      1602    1615     +13
builtin_type                                         114     116      +2

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