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
9
shell/ash_test/ash-misc/func_args1.tests
Executable file
9
shell/ash_test/ash-misc/func_args1.tests
Executable file
@@ -0,0 +1,9 @@
|
||||
|
||||
f() { echo "'f $1 $2 $3' called"; }
|
||||
|
||||
set -- a b c
|
||||
echo "params: $1 $2 $3"
|
||||
f 1 2 3
|
||||
echo "params: $1 $2 $3"
|
||||
true | f 1 2 3
|
||||
echo "params: $1 $2 $3"
|
||||
Reference in New Issue
Block a user