ash: copy function tests from hush testsuite
Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
committed by
Denys Vlasenko
parent
2cf4591413
commit
85405c80a2
13
shell/ash_test/ash-misc/func5.tests
Executable file
13
shell/ash_test/ash-misc/func5.tests
Executable file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user