diff options
author | Denys Vlasenko | 2009-05-04 00:14:30 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-05-04 00:14:30 +0200 |
commit | cb6ff25afeb2daeebcb435c9766215061d3c75cb (patch) | |
tree | e185f3ff23622f171d52fb783ad4b23626f26bfc /shell/hush_test/hush-bugs | |
parent | e19e1935a33b117e2ee6daf9b2d79c00603333c7 (diff) | |
download | busybox-cb6ff25afeb2daeebcb435c9766215061d3c75cb.zip 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/hush-bugs')
-rw-r--r-- | shell/hush_test/hush-bugs/env_and_func.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/env_and_func.tests | 6 |
2 files changed, 0 insertions, 8 deletions
diff --git a/shell/hush_test/hush-bugs/env_and_func.right b/shell/hush_test/hush-bugs/env_and_func.right deleted file mode 100644 index 4a15450..0000000 --- a/shell/hush_test/hush-bugs/env_and_func.right +++ /dev/null @@ -1,2 +0,0 @@ -var=val -var=old diff --git a/shell/hush_test/hush-bugs/env_and_func.tests b/shell/hush_test/hush-bugs/env_and_func.tests deleted file mode 100755 index d62c1af..0000000 --- a/shell/hush_test/hush-bugs/env_and_func.tests +++ /dev/null @@ -1,6 +0,0 @@ -# UNFIXED BUG - -var=old -f() { echo "var=$var"; } -var=val f -echo "var=$var" |