summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-04-14 16:24:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-04-14 16:24:42 +0000
commitc69b149cb5ce6446eb267074f640e34ca726a45d (patch)
treeb083574ada7a063034f89949d5aa332d3b79b7e1 /Test
parent24c329275a1620accf3121cdc9c53daf9bd606bd (diff)
downloadzsh-c69b149cb5ce6446eb267074f640e34ca726a45d.tar.gz
zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.zip
21141: fix some issues associated with the {myfd}>... syntax
Diffstat (limited to 'Test')
-rw-r--r--Test/A04redirect.ztst7
1 files changed, 6 insertions, 1 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst
index 4ed65e189..66326008f 100644
--- a/Test/A04redirect.ztst
+++ b/Test/A04redirect.ztst
@@ -248,6 +248,11 @@
>Examining contents of logfile...
>This is my logfile.
+ setopt noclobber
+ exec {myfd}>logfile2
+1q:NO_CLOBBER prevents overwriting parameter with allocated fd
+?(eval):2: can't clobber parameter myfd containing file descriptor $myfd
+
exec {myfd}>&-
print This message should disappear >&$myfd
1q:Closing file descriptor using brace syntax
@@ -256,7 +261,7 @@
typeset -r myfd
echo This should not appear {myfd}>nologfile
1:Error opening file descriptor using readonly variable
-?(eval):2: read-only variable: myfd
+?(eval):2: can't allocate file descriptor to readonly parameter myfd
typeset +r myfd
exec {myfd}>newlogfile