Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
EXIT trap and the return status
- X-seq: zsh-workers 17846
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: EXIT trap and the return status
- Date: Thu, 24 Oct 2002 10:00:14 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: kiddleo@xxxxxxxxxx
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author