From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: EXIT trap and the return status
Date: Thu, 24 Oct 2002 10:00:14 +0100 [thread overview]
Message-ID: <E184dqg-000286-00@bimbo.logica.co.uk> (raw)
I was trying to work out why the _prefix completer that follows
_approximate at the end of my completers is never being run in zsh 4.1.
The trace looks like this:
+_approximate:113> return 1
+_main_complete:1> unfunction compadd
+_main_complete:156> ret=0
+_main_complete:157> break 2
The `unfunction compadd' comes from _approximate doing
trap 'unfunction compadd' EXIT INT
The problem is that because that trap is successful, _approximate is
returning 0 instead of 1. This possibly has something to do with the
change in 17250. It doesn't seem right to me (and is inconsistent with
ksh93). So is this a bug? If not, I'll adjust _approximate.
Oliver
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
next reply other threads:[~2002-10-24 9:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-24 9:00 Oliver Kiddle [this message]
2002-10-28 14:50 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E184dqg-000286-00@bimbo.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).