diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-04 00:14:30 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-05-04 00:14:30 +0200 |
commit | cb6ff25afeb2daeebcb435c9766215061d3c75cb (patch) | |
tree | e185f3ff23622f171d52fb783ad4b23626f26bfc /shell/hush_test | |
parent | e19e1935a33b117e2ee6daf9b2d79c00603333c7 (diff) | |
download | busybox-cb6ff25afeb2daeebcb435c9766215061d3c75cb.tar.gz |
hush: fix bug where in "var=val func" var's value is not visible in func
function old new delta
unset_local_var - 168 +168
set_vars_all_and_save_old - 87 +87
get_ptr_to_local_var - 77 +77
free_strings_and_unset - 53 +53
builtin_export 266 274 +8
get_local_var_value 31 33 +2
putenv_all 27 - -27
free_strings_and_unsetenv 53 - -53
get_local_var 68 - -68
run_list 2475 2350 -125
builtin_unset 380 220 -160
------------------------------------------------------------------------------
(add/remove: 4/3 grow/shrink: 2/2 up/down: 395/-433) Total: -38 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-misc/env_and_func.right (renamed from shell/hush_test/hush-bugs/env_and_func.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/env_and_func.tests (renamed from shell/hush_test/hush-bugs/env_and_func.tests) | 2 |
2 files changed, 0 insertions, 2 deletions
diff --git a/shell/hush_test/hush-bugs/env_and_func.right b/shell/hush_test/hush-misc/env_and_func.right index 4a1545058..4a1545058 100644 --- a/shell/hush_test/hush-bugs/env_and_func.right +++ b/shell/hush_test/hush-misc/env_and_func.right diff --git a/shell/hush_test/hush-bugs/env_and_func.tests b/shell/hush_test/hush-misc/env_and_func.tests index d62c1af40..1d4eaf3a7 100755 --- a/shell/hush_test/hush-bugs/env_and_func.tests +++ b/shell/hush_test/hush-misc/env_and_func.tests @@ -1,5 +1,3 @@ -# UNFIXED BUG - var=old f() { echo "var=$var"; } var=val f |