OSDN Git Service

hush: fix a=abc; c=c; echo ${a%${c}}
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 May 2010 17:52:01 +0000 (19:52 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 21 May 2010 17:52:01 +0000 (19:52 +0200)
commit7436950a7516d1f4498285ccc81bf6d926f3af5e
tree392a5f5eaed215eaacaded7bc92456729161e1d0
parent3f78cec34745069cf0a92a16dfccff66d98ef5ba
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>
shell/hush.c
shell/hush_test/hush-vars/var3.right
shell/hush_test/hush-vars/var_posix1.right
shell/hush_test/hush-vars/var_posix1.tests