diff options
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/Utility/_call_program | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Base/Utility/_call_program b/Completion/Base/Utility/_call_program index b65764827..010e09476 100644 --- a/Completion/Base/Utility/_call_program +++ b/Completion/Base/Utility/_call_program @@ -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 |