hush: do fewer strdups in % and hash expansions
authorDenys Vlasenko <dvlasenk@redhat.com>
Fri, 10 Sep 2010 09:06:01 +0000 (11:06 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Fri, 10 Sep 2010 09:06:01 +0000 (11:06 +0200)
commit4f870496e7d934fcbe092478f1da8ec7a3ea4466
tree931344dd0d6d1d8cfaf358b1cd6f6e8982101b74
parentd98e5c65c3c69373dab56a7f9af8780c1a8123b2
hush: do fewer strdups in % and hash expansions

function                                             old     new   delta
builtin_umask                                        133     132      -1
expand_one_var                                      1552    1543      -9

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