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>
This commit is contained in:
Denys Vlasenko
2010-09-10 11:06:01 +02:00
parent d98e5c65c3
commit 4f870496e7
3 changed files with 30 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
Expected Actual
a*z : a*z
\z : \z
a1z a2z: a1z a2z
z : z