sh: Add tests for the </dev/null implicit in a background command.

This commit is contained in:
jilles 2013-11-22 21:50:13 +00:00
parent 29e30ead58
commit 84705b6205
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# $FreeBSD$
# A background command has an implicit </dev/null redirection.
echo bad | ${SH} -c '{ cat & wait; }'

View File

@ -0,0 +1,4 @@
# $FreeBSD$
# The redirection overrides the </dev/null implicit in a background command.
echo yes | ${SH} -c '{ cat & wait; } </dev/stdin'

View File

@ -0,0 +1 @@
yes