Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: trap does not work in a trap function?



On Thu, 09 Sep 2010 14:03:41 +0200
"Dominik Vogt" <dominik.vogt@xxxxxx> wrote:
> But then, what is the localtraps option good
> for?  I thought it was meant to do exactly what you describe
> above.

The "special" traps, the ones that don't map directly to signals, are
handled differently from others; in particular because of its relationship
with functions, TRAPEXIT is effectively always local.  (The other special
traps, SIGZERR and SIGDEBUG, don't have this kind of specialness, but they
have others.)

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



Messages sorted by: Reverse Date, Date, Thread, Author