about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-10-26 18:48:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-10-26 18:48:13 +0000
commitfaa02346a8b23ff0c6694b616c92e93b8e76cd8b (patch)
treeecf0fa784803ed08e892eae486a7ffe9187eabf9 /Test
parent68d1c094db86d06e49cbb992fce51aa742418476 (diff)
downloadzsh-faa02346a8b23ff0c6694b616c92e93b8e76cd8b.tar.gz
zsh-faa02346a8b23ff0c6694b616c92e93b8e76cd8b.tar.xz
zsh-faa02346a8b23ff0c6694b616c92e93b8e76cd8b.zip
29844, 29845: remove bogus
error on closing fd's 0 to 9; update test
Diffstat (limited to 'Test')
-rw-r--r--Test/A04redirect.ztst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index c2321a571..e58102664 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -156,11 +156,14 @@
   read foo <&-)
 1:'<&-' redirection
 ?(eval):1: failed to close file descriptor 3: bad file descriptor
-?(eval):2: failed to close file descriptor 0: bad file descriptor
 
   print foo >&-
 0:'>&-' redirection
-?(eval):1: failed to close file descriptor 1: bad file descriptor
+
+  (exec >&-
+  print foo)
+0:'>&-' with attempt to use closed fd
+?(eval):2: write error: bad file descriptor
 
   fn() { local foo; read foo; print $foo; }
   coproc fn