diff options
author | jilles <jilles@FreeBSD.org> | 2013-11-22 21:50:13 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-11-22 21:50:13 +0000 |
commit | 84705b6205d83b869c1904542b7e7dd0e997162a (patch) | |
tree | 89c3083d30c27ec58f234ff759248bf76038c4f9 /tools | |
parent | 29e30ead58447e9961a55121809eced690c8a6fe (diff) | |
download | FreeBSD-src-84705b6205d83b869c1904542b7e7dd0e997162a.zip FreeBSD-src-84705b6205d83b869c1904542b7e7dd0e997162a.tar.gz |
sh: Add tests for the </dev/null implicit in a background command.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/execution/bg5.0 | 4 | ||||
-rw-r--r-- | tools/regression/bin/sh/execution/bg6.0 | 4 | ||||
-rw-r--r-- | tools/regression/bin/sh/execution/bg6.0.stdout | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/execution/bg5.0 b/tools/regression/bin/sh/execution/bg5.0 new file mode 100644 index 0000000..cc9ceaa --- /dev/null +++ b/tools/regression/bin/sh/execution/bg5.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ +# A background command has an implicit </dev/null redirection. + +echo bad | ${SH} -c '{ cat & wait; }' diff --git a/tools/regression/bin/sh/execution/bg6.0 b/tools/regression/bin/sh/execution/bg6.0 new file mode 100644 index 0000000..b0faf9e --- /dev/null +++ b/tools/regression/bin/sh/execution/bg6.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ +# The redirection overrides the </dev/null implicit in a background command. + +echo yes | ${SH} -c '{ cat & wait; } </dev/stdin' diff --git a/tools/regression/bin/sh/execution/bg6.0.stdout b/tools/regression/bin/sh/execution/bg6.0.stdout new file mode 100644 index 0000000..7cfab5b --- /dev/null +++ b/tools/regression/bin/sh/execution/bg6.0.stdout @@ -0,0 +1 @@ +yes |