mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-29 16:25:35 +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
|
@ -1,3 +1,9 @@
|
||||||
|
2023-12-02 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 52360: Test/A04redirect.ztst: Simplify bad-descriptor check in
|
||||||
|
%prep -- avoids accidentally using an open descriptor (derived
|
||||||
|
from German Riano: 52328)
|
||||||
|
|
||||||
2023-11-29 Bart Schaefer <schaefer@zsh.org>
|
2023-11-29 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
* Sebastian Gniazdowski: 52145: Functions/Prompts/prompt_sprint2_setup:
|
* Sebastian Gniazdowski: 52145: Functions/Prompts/prompt_sprint2_setup:
|
||||||
|
|
|
@ -3,9 +3,8 @@
|
||||||
%prep
|
%prep
|
||||||
mkdir redir.tmp && cd redir.tmp
|
mkdir redir.tmp && cd redir.tmp
|
||||||
|
|
||||||
myfd=99
|
bad_fd_msg="${$( { exec 9>&-; echo >&9 } 2>&1)##*:}"
|
||||||
(echo >&$myfd) 2>msg
|
[[ -n "$bad_fd_msg" ]]
|
||||||
bad_fd_msg="${$(<msg)##*:}"
|
|
||||||
|
|
||||||
%test
|
%test
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue