sh: Add tests for some somewhat obscure aspects of function definitions.

This commit is contained in:
Jilles Tjoelker 2011-05-30 21:49:59 +00:00
parent 562b28821e
commit 36ae1a9441
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,6 @@
# $FreeBSD$
f() { return 42; }
f() { return 3; } &
f
[ $? -eq 42 ]

View File

@ -0,0 +1,6 @@
# $FreeBSD$
name=/var/empty/nosuch
f() { true; } <$name
name=/dev/null
f