aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-redir/redir3.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-redir/redir3.tests')
-rwxr-xr-xshell/hush_test/hush-redir/redir3.tests14
1 files changed, 5 insertions, 9 deletions
diff --git a/shell/hush_test/hush-redir/redir3.tests b/shell/hush_test/hush-redir/redir3.tests
index 7c28e4324..e37d5e45a 100755
--- a/shell/hush_test/hush-redir/redir3.tests
+++ b/shell/hush_test/hush-redir/redir3.tests
@@ -1,9 +1,5 @@
1echo Error >/does/not/exist; echo One:$? 1# redirects to closed descriptors should not leave these descriptors
2t=BAD 2# open afterwards
3t=Ok >>/cant/be/created; echo One:$? 3echo TEST 9>/dev/null
4echo $t 4echo MUST ERROR OUT >&9
5! >/cant/be/created; echo Zero:$? 5echo "Output to fd#9: $?"
6exec >/cant/be/created; echo One:$?
7exec /bin/true >/cant/be/created; echo One:$?
8! exec /bin/true >/cant/be/created; echo Zero:$?
9echo Done