diff options
Diffstat (limited to 'shell/hush_test/hush-redir/redir3.tests')
-rwxr-xr-x | shell/hush_test/hush-redir/redir3.tests | 14 |
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 @@ | |||
1 | echo Error >/does/not/exist; echo One:$? | 1 | # redirects to closed descriptors should not leave these descriptors |
2 | t=BAD | 2 | # open afterwards |
3 | t=Ok >>/cant/be/created; echo One:$? | 3 | echo TEST 9>/dev/null |
4 | echo $t | 4 | echo MUST ERROR OUT >&9 |
5 | ! >/cant/be/created; echo Zero:$? | 5 | echo "Output to fd#9: $?" |
6 | exec >/cant/be/created; echo One:$? | ||
7 | exec /bin/true >/cant/be/created; echo One:$? | ||
8 | ! exec /bin/true >/cant/be/created; echo Zero:$? | ||
9 | echo Done | ||