From 95732b497d12c98613bb3c5db16b61f377501a59 Mon Sep 17 00:00:00 2001 From: Jari Aalto Date: Wed, 7 Dec 2005 14:08:12 +0000 Subject: Imported from ../bash-3.1.tar.gz. --- tests/redir.tests | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tests/redir.tests') diff --git a/tests/redir.tests b/tests/redir.tests index 19cf9a1..2669cd4 100644 --- a/tests/redir.tests +++ b/tests/redir.tests @@ -156,3 +156,19 @@ ${THIS_SH} ./redir5.sub # test behavior after a write error with a builtin command ${THIS_SH} ./redir6.sub + +# problem with redirections using fds bash uses internally +: ${TMPDIR:=/tmp} + +trap 'rm -f $TMPDIR/bash-redir-$$' 0 1 2 3 6 15 + +echo before block +{ + echo before redir + exec 10>&1 + echo after redir +} > $TMPDIR/bash-redir-$$ + +echo after block + +${THIS_SH} ./redir7.sub -- cgit v1.2.3