diff options
author | Peter Stephenson <pws@zsh.org> | 2015-01-20 11:53:42 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-01-20 11:53:42 +0000 |
commit | 638bfa93a009987e57bd7eaa8b2a1c1067a3652a (patch) | |
tree | 27913b050155cf22f5391ec857bfb84b6701271c /Test | |
parent | e6d964246700581fe22ea834b2ea12dd301e8c3d (diff) | |
download | zsh-638bfa93a009987e57bd7eaa8b2a1c1067a3652a.tar.gz zsh-638bfa93a009987e57bd7eaa8b2a1c1067a3652a.tar.xz zsh-638bfa93a009987e57bd7eaa8b2a1c1067a3652a.zip |
users/19756: test for case of closing fd with no error message
Diffstat (limited to 'Test')
-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 cb6778874..13f1f7cb5 100644 --- a/Test/A04redirect.ztst +++ b/Test/A04redirect.ztst @@ -152,11 +152,16 @@ >hello >goodbye + ({exec 3<&- } 2>/dev/null + exec 3<&- + read foo <&-) +1:'<&-' redirection with numeric fd (no error message on failure) + (exec {varid}<&0 exec {varid}<&- print About to close a second time >&2 read {varid}<&-) -1:'<&-' redirection +1:'<&-' redirection with fd in variable (error message on failure) ?About to close a second time *?\(eval\):*: failed to close file descriptor * |