mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-20 10:53:29 +02:00
33403: be conservative about redirecting _call_program stderr, the caller may have already done so
This commit is contained in:
parent
a03227de23
commit
22c4ea424c
@ -3,6 +3,11 @@
|
||||
* 33405: Functions/VCS_Info/vcs_info: Make sure maxexports
|
||||
is set when VCS_INFO_set is called
|
||||
|
||||
2014-10-09 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 33403: Completion/Base/Utility/_call_program: be conservative
|
||||
about redirecting stderr, the caller may have already done so
|
||||
|
||||
2014-10-09 Marc Finet <m.dreadlock@gmail.com>
|
||||
|
||||
* 33391: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
local tmp err_fd=-1
|
||||
|
||||
if (( ${debug_fd:--1} > 2 ))
|
||||
then exec {err_fd}>&2 # debug_fd is saved stderr, 2 is log file
|
||||
if (( ${debug_fd:--1} > 2 )) || [[ ! -t 2 ]]
|
||||
then exec {err_fd}>&2 # debug_fd is saved stderr, 2 is trace or redirect
|
||||
else exec {err_fd}>/dev/null
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user