mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
11469: Locally unset the errexit option and ZERR trap.
This commit is contained in:
parent
529158f82f
commit
aea69f6e64
3 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
2000-05-19 Bart Schaefer <schaefer@zsh.org>
|
2000-05-19 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* 11469: Completion/Commands/_complete_debug,
|
||||||
|
Completion/Core/_main_complete: Locally unset the errexit option
|
||||||
|
and ZERR trap.
|
||||||
|
|
||||||
* 11461: Src/builtin.c: Make "read" interruptible even when used
|
* 11461: Src/builtin.c: Make "read" interruptible even when used
|
||||||
in the tail of a pipeline.
|
in the tail of a pipeline.
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
setopt localoptions nullglob rcexpandparam extendedglob
|
setopt localoptions nullglob rcexpandparam extendedglob
|
||||||
unsetopt markdirs globsubst shwordsplit nounset ksharrays
|
unsetopt markdirs globsubst shwordsplit nounset ksharrays
|
||||||
|
|
||||||
|
setopt localtraps noerrexit ; trap - ZERR
|
||||||
|
|
||||||
(( $+_debug_count )) || integer -g _debug_count
|
(( $+_debug_count )) || integer -g _debug_count
|
||||||
local tmp=${TMPPREFIX}${$}${words[1]:t}$[++_debug_count]
|
local tmp=${TMPPREFIX}${$}${words[1]:t}$[++_debug_count]
|
||||||
local w="${(qq)words}"
|
local w="${(qq)words}"
|
||||||
|
|
|
@ -20,6 +20,9 @@ setopt localoptions nullglob rcexpandparam extendedglob
|
||||||
unsetopt markdirs globsubst shwordsplit nounset ksharrays
|
unsetopt markdirs globsubst shwordsplit nounset ksharrays
|
||||||
exec </dev/null # ZLE closes stdin, which can cause errors
|
exec </dev/null # ZLE closes stdin, which can cause errors
|
||||||
|
|
||||||
|
# Failed returns from this code are not real errors
|
||||||
|
setopt localtraps noerrexit ; trap - ZERR
|
||||||
|
|
||||||
local func funcs ret=1 tmp _compskip format nm call \
|
local func funcs ret=1 tmp _compskip format nm call \
|
||||||
_completers _completer _completer_num curtag _comp_force_list \
|
_completers _completer _completer_num curtag _comp_force_list \
|
||||||
_matchers _matcher _matcher_num _comp_tags _comp_mesg \
|
_matchers _matcher _matcher_num _comp_tags _comp_mesg \
|
||||||
|
|
Loading…
Reference in a new issue