Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Allowing traps
- X-seq: zsh-workers 13173
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Allowing traps
- Date: Mon, 20 Nov 2000 16:09:45 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
It's currently possible, even with the rewritten trap code, for a trap to
be called inside a trap. For example, if a trap includes a `read', another
trap could be called at that point (whether it is already in the queue, or
the signal has arrived since the trap started). This is presumably
unhealthy --- at least, I have some shell code using the new trap behaviour
which gets upset if instances of it are not called sequentially. Should we
add an extra flag to block traps explicitly from running when we are inside
doqueuedtraps()?
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author