sh: Add tests for some somewhat obscure aspects of function definitions.
This commit is contained in:
parent
562b28821e
commit
36ae1a9441
6
tools/regression/bin/sh/parser/func2.0
Normal file
6
tools/regression/bin/sh/parser/func2.0
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
f() { return 42; }
|
||||
f() { return 3; } &
|
||||
f
|
||||
[ $? -eq 42 ]
|
6
tools/regression/bin/sh/parser/func3.0
Normal file
6
tools/regression/bin/sh/parser/func3.0
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
name=/var/empty/nosuch
|
||||
f() { true; } <$name
|
||||
name=/dev/null
|
||||
f
|
Loading…
Reference in New Issue
Block a user