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

This commit is contained in:
Jilles Tjoelker 2013-11-22 21:50:13 +00:00
parent 116e43f021
commit c2fd50d77a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=258489
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