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
16
shell/ash_test/ash-misc/func1.tests
Executable file
16
shell/ash_test/ash-misc/func1.tests
Executable file
@@ -0,0 +1,16 @@
|
||||
f() { echo Hello; }
|
||||
g () { echo One: $# Param1: $1; }
|
||||
h ( )
|
||||
{
|
||||
echo -n 'Multi ' && echo -n 'line '
|
||||
echo function
|
||||
false
|
||||
}
|
||||
|
||||
f
|
||||
echo Zero: $?
|
||||
set -- Restored
|
||||
{ g World; }
|
||||
echo Zero: $? Param1: $1
|
||||
( h )
|
||||
echo One: $?
|
Reference in New Issue
Block a user