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

This commit is contained in:
Jilles Tjoelker 2013-11-24 22:45:49 +00:00
parent 702701714b
commit 82baac5777
3 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# $FreeBSD$
# The redirection does not apply to the background command, and therefore
# does not override the implicit </dev/null.
echo bad | ${SH} -c '</dev/null; { cat & wait; }'

View File

@ -0,0 +1,5 @@
# $FreeBSD$
# The redirection does not apply to the background command, and therefore
# does not override the implicit </dev/null.
echo bad | ${SH} -c 'command eval \) </dev/null 2>/dev/null; { cat & wait; }'

View File

@ -0,0 +1,5 @@
# $FreeBSD$
# The redirection does not apply to the background command, and therefore
# does not override the implicit </dev/null.
echo bad | ${SH} -c 'command eval eval \\\) \</dev/null 2>/dev/null; { cat & wait; }'