hush_test: test for subshell function syntax
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
7b424fe738
commit
12bcc76e9b
3
shell/hush_test/hush-misc/func5.right
Normal file
3
shell/hush_test/hush-misc/func5.right
Normal file
@ -0,0 +1,3 @@
|
||||
1
|
||||
2
|
||||
3
|
9
shell/hush_test/hush-misc/func5.tests
Executable file
9
shell/hush_test/hush-misc/func5.tests
Executable file
@ -0,0 +1,9 @@
|
||||
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
|
Loading…
Reference in New Issue
Block a user