diff options
author | jilles <jilles@FreeBSD.org> | 2013-11-24 23:12:13 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-11-24 23:12:13 +0000 |
commit | 4e34b845870b14e6d758cd141e7c08f5225ae940 (patch) | |
tree | d5945aceac4152d0ab7de9eb45d68e0e9865344f /tools/regression | |
parent | 8fd329b496dfdd93de92d292f616b93bca9116e7 (diff) | |
download | FreeBSD-src-4e34b845870b14e6d758cd141e7c08f5225ae940.zip FreeBSD-src-4e34b845870b14e6d758cd141e7c08f5225ae940.tar.gz |
sh: Make <&0 disable the </dev/null implicit in a background command.
Although <&0 does nothing, it is a redirection affecting standard input and
should therefore disable the </dev/null redirection implicit in a background
command.
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/bin/sh/execution/bg10.0 | 4 | ||||
-rw-r--r-- | tools/regression/bin/sh/execution/bg10.0.stdout | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/regression/bin/sh/execution/bg10.0 b/tools/regression/bin/sh/execution/bg10.0 new file mode 100644 index 0000000..44a25dc --- /dev/null +++ b/tools/regression/bin/sh/execution/bg10.0 @@ -0,0 +1,4 @@ +# $FreeBSD$ +# The redirection overrides the </dev/null implicit in a background command. + +echo yes | ${SH} -c '{ cat & wait; } <&0' diff --git a/tools/regression/bin/sh/execution/bg10.0.stdout b/tools/regression/bin/sh/execution/bg10.0.stdout new file mode 100644 index 0000000..7cfab5b --- /dev/null +++ b/tools/regression/bin/sh/execution/bg10.0.stdout @@ -0,0 +1 @@ +yes |