diff options
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 * |