busybox/shell/ash_test/ash-misc/func5.tests
Ron Yorston 85405c80a2 ash: copy function tests from hush testsuite
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2015-11-04 14:48:16 +01:00

14 lines
104 B
Plaintext
Executable File

f() { echo $1; }
f 1
f() ( echo $1; )
f 2
f() ( echo $1 )
f 3
f() for i in 1 2 3; do
echo $i
done
f