aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-redir/redir5.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash_test/ash-redir/redir5.tests')
-rwxr-xr-xshell/ash_test/ash-redir/redir5.tests16
1 files changed, 13 insertions, 3 deletions
diff --git a/shell/ash_test/ash-redir/redir5.tests b/shell/ash_test/ash-redir/redir5.tests
index 91b0c1ff9..957f9c81f 100755
--- a/shell/ash_test/ash-redir/redir5.tests
+++ b/shell/ash_test/ash-redir/redir5.tests
@@ -1,3 +1,13 @@
1# ash uses fd 10 (usually) for reading the script 1echo "Backgrounded pipes shall have their stdin redirected to /dev/null"
2echo LOST >&10 2
3echo OK 3# 1. bash does not redirect stdin to /dev/null if it is interactive.
4# hush does it always (this is allowed by standards).
5
6# 2. Failure will result in this script hanging
7
8cat & wait; echo Zero:$?
9
10# This does not work for bash! bash bug?
11cat | cat & wait; echo Zero:$?
12
13echo Done