From 572930027d5d86a18ebd68d5f4273150a2f302e1 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 26 Apr 2009 20:06:14 +0000 Subject: hush: nommu fix for function passing --- shell/hush_test/hush-misc/func4.right | 2 ++ shell/hush_test/hush-misc/func4.tests | 7 +++++++ shell/hush_test/hush-z_slow/leak_all1.tests | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 shell/hush_test/hush-misc/func4.right create mode 100755 shell/hush_test/hush-misc/func4.tests (limited to 'shell/hush_test') diff --git a/shell/hush_test/hush-misc/func4.right b/shell/hush_test/hush-misc/func4.right new file mode 100644 index 000000000..0c87e316a --- /dev/null +++ b/shell/hush_test/hush-misc/func4.right @@ -0,0 +1,2 @@ +24 +Done diff --git a/shell/hush_test/hush-misc/func4.tests b/shell/hush_test/hush-misc/func4.tests new file mode 100755 index 000000000..db3f15abf --- /dev/null +++ b/shell/hush_test/hush-misc/func4.tests @@ -0,0 +1,7 @@ +func() { + eval "echo \"\${val_${1}}\"" +} + +val_x=24 +(func x) +echo Done diff --git a/shell/hush_test/hush-z_slow/leak_all1.tests b/shell/hush_test/hush-z_slow/leak_all1.tests index 17ce0c6fa..4e3c4fdec 100755 --- a/shell/hush_test/hush-z_slow/leak_all1.tests +++ b/shell/hush_test/hush-z_slow/leak_all1.tests @@ -67,6 +67,7 @@ HERE f >/dev/null : $((i++)) done +unset i l t unset -f f memleak @@ -134,6 +135,7 @@ HERE f >/dev/null : $((i++)) done +unset i l t unset -f f -- cgit v1.2.3