diff options
author | jilles <jilles@FreeBSD.org> | 2013-11-24 22:45:49 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-11-24 22:45:49 +0000 |
commit | 705e77596148b630a7127ae65307cd6e01cb857c (patch) | |
tree | eeca1aa4c430d5e8b90fdec2b069dfbac5c42bab /tools | |
parent | c1432a7d8da354f23ff21054e04bb93f21e0b7aa (diff) | |
download | FreeBSD-src-705e77596148b630a7127ae65307cd6e01cb857c.zip FreeBSD-src-705e77596148b630a7127ae65307cd6e01cb857c.tar.gz |
sh: Add more tests for the </dev/null implicit in a background command.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/bin/sh/execution/bg7.0 | 5 | ||||
-rw-r--r-- | tools/regression/bin/sh/execution/bg8.0 | 5 | ||||
-rw-r--r-- | tools/regression/bin/sh/execution/bg9.0 | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/execution/bg7.0 b/tools/regression/bin/sh/execution/bg7.0 new file mode 100644 index 0000000..f771edc --- /dev/null +++ b/tools/regression/bin/sh/execution/bg7.0 @@ -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; }' diff --git a/tools/regression/bin/sh/execution/bg8.0 b/tools/regression/bin/sh/execution/bg8.0 new file mode 100644 index 0000000..33667cb --- /dev/null +++ b/tools/regression/bin/sh/execution/bg8.0 @@ -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; }' diff --git a/tools/regression/bin/sh/execution/bg9.0 b/tools/regression/bin/sh/execution/bg9.0 new file mode 100644 index 0000000..64fde3e --- /dev/null +++ b/tools/regression/bin/sh/execution/bg9.0 @@ -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; }' |