diff options
author | Bart Schaefer <schaefer@zsh.org> | 2023-12-02 15:14:12 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2023-12-02 15:14:12 -0800 |
commit | 1ba0fff93cc1aea65b61eacef32c6cefe8d7b7c8 (patch) | |
tree | c1b6b8c87bb415beaa7de8b101763de463a9d0d8 /Test | |
parent | 10bb67df5a223691d977f94cf12db6533c1e3c55 (diff) | |
download | zsh-1ba0fff93cc1aea65b61eacef32c6cefe8d7b7c8.tar.gz zsh-1ba0fff93cc1aea65b61eacef32c6cefe8d7b7c8.tar.xz zsh-1ba0fff93cc1aea65b61eacef32c6cefe8d7b7c8.zip |
52360: simplify and improve bad-descriptor detection in %prep section
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A04redirect.ztst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Test/A04redirect.ztst b/Test/A04redirect.ztst index 17f6dfa29..dc62efab3 100644 --- a/Test/A04redirect.ztst +++ b/Test/A04redirect.ztst @@ -3,9 +3,8 @@ %prep mkdir redir.tmp && cd redir.tmp - myfd=99 - (echo >&$myfd) 2>msg - bad_fd_msg="${$(<msg)##*:}" + bad_fd_msg="${$( { exec 9>&-; echo >&9 } 2>&1)##*:}" + [[ -n "$bad_fd_msg" ]] %test |