1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 05:00:59 +01:00

52360: simplify and improve bad-descriptor detection in %prep section

This commit is contained in:
Bart Schaefer 2023-12-02 15:14:12 -08:00
parent 10bb67df5a
commit 1ba0fff93c
2 changed files with 8 additions and 3 deletions

View file

@ -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