busybox/shell/hush_test/hush-misc/func5.tests
Mike Frysinger 12bcc76e9b hush_test: test for subshell function syntax
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-05-21 18:35:08 -04:00

10 lines
133 B
Plaintext
Executable File

f() { echo $1; }
f 1
# hush fails on this syntax, but i've never seen anyone use it ...
#f() ( echo $1; )
f 2
#f() ( echo $1 )
f 3