hush/shell/ash_test/ash-misc/func1.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

17 lines
222 B
Plaintext
Executable File

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: $?