sh: Add tests for the </dev/null implicit in a background command.
This commit is contained in:
parent
29e30ead58
commit
84705b6205
4
tools/regression/bin/sh/execution/bg5.0
Normal file
4
tools/regression/bin/sh/execution/bg5.0
Normal file
@ -0,0 +1,4 @@
|
||||
# $FreeBSD$
|
||||
# A background command has an implicit </dev/null redirection.
|
||||
|
||||
echo bad | ${SH} -c '{ cat & wait; }'
|
4
tools/regression/bin/sh/execution/bg6.0
Normal file
4
tools/regression/bin/sh/execution/bg6.0
Normal 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'
|
1
tools/regression/bin/sh/execution/bg6.0.stdout
Normal file
1
tools/regression/bin/sh/execution/bg6.0.stdout
Normal file
@ -0,0 +1 @@
|
||||
yes
|
Loading…
Reference in New Issue
Block a user