about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-05-19 16:04:16 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-05-19 16:04:16 +0000
commitaea69f6e640a47f2f442bf58504c94dc8091e2ab (patch)
tree02f4c0764f6aaecb17a659c419dbb24e51ee1e79 /Completion/Core
parent529158f82f1959019c21c0d6e7081a6dae677401 (diff)
downloadzsh-aea69f6e640a47f2f442bf58504c94dc8091e2ab.tar.gz
zsh-aea69f6e640a47f2f442bf58504c94dc8091e2ab.tar.xz
zsh-aea69f6e640a47f2f442bf58504c94dc8091e2ab.zip
11469: Locally unset the errexit option and ZERR trap.
Diffstat (limited to 'Completion/Core')
-rw-r--r--Completion/Core/_main_complete3
1 files changed, 3 insertions, 0 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete
index a67e57db6..19295a991 100644
--- a/Completion/Core/_main_complete
+++ b/Completion/Core/_main_complete
@@ -20,6 +20,9 @@ setopt localoptions nullglob rcexpandparam extendedglob
 unsetopt markdirs globsubst shwordsplit nounset ksharrays
 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 \
       _completers _completer _completer_num curtag _comp_force_list \
       _matchers _matcher _matcher_num _comp_tags _comp_mesg \