diff options
author | Denis Vlasenko | 2009-04-11 10:37:10 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-04-11 10:37:10 +0000 |
commit | ed055214bba86644e1c2168b0e1d1bd7fa82a93c (patch) | |
tree | a22b8eb401d5d6ed57cf7e8bfff1adb95af67f23 /shell/hush_test/hush-z_slow | |
parent | 75bccfa375564337bfbd57e5d54f92e155a0b18b (diff) | |
download | busybox-ed055214bba86644e1c2168b0e1d1bd7fa82a93c.zip busybox-ed055214bba86644e1c2168b0e1d1bd7fa82a93c.tar.gz |
hush: fix "while...do f1() {a;}; f1; f1 {b;}; f1; done" bug
Diffstat (limited to 'shell/hush_test/hush-z_slow')
-rwxr-xr-x | shell/hush_test/hush-z_slow/leak_all1.tests | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/hush_test/hush-z_slow/leak_all1.tests b/shell/hush_test/hush-z_slow/leak_all1.tests index 4c9d41a..21fdb0d 100755 --- a/shell/hush_test/hush-z_slow/leak_all1.tests +++ b/shell/hush_test/hush-z_slow/leak_all1.tests @@ -62,7 +62,8 @@ HERE echo >/dev/null ${var%%*} set -- par1_$i par2_$i par3_$i par4_$i trap "echo trap$i" WINCH - f() { echo $1; } + f() { true; true; true; true; true; true; true; true; } + f() { true; true; true; true; true; true; true; true; echo $1; } f >/dev/null : $((i++)) done @@ -127,7 +128,8 @@ HERE echo >/dev/null ${var%%*} set -- par1_$i par2_$i par3_$i par4_$i trap "echo trap$i" WINCH - f() { echo $1; } + f() { true; true; true; true; true; true; true; true; } + f() { true; true; true; true; true; true; true; true; echo $1; } f >/dev/null : $((i++)) done |