diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2005-04-14 16:24:42 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-04-14 16:24:42 +0000 |
| commit | c69b149cb5ce6446eb267074f640e34ca726a45d (patch) | |
| tree | b083574ada7a063034f89949d5aa332d3b79b7e1 /Test/A04redirect.ztst | |
| parent | Belated commit of 21064: test case for 21049 (diff) | |
| download | zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.tar zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.tar.gz zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.tar.bz2 zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.tar.lz zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.tar.xz zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.tar.zst zsh-c69b149cb5ce6446eb267074f640e34ca726a45d.zip | |
21141: fix some issues associated with the {myfd}>... syntax
Diffstat (limited to 'Test/A04redirect.ztst')
| -rw-r--r-- | Test/A04redirect.ztst | 7 |
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 |
