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:
parent
10bb67df5a
commit
1ba0fff93c
2 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue