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

Re: PATCH: (2) test for trap EXIT fix.



On Oct 3,  4:18pm, Peter Stephenson wrote:
}
} Are you saying this is correct and the inconsistency between falling off
} the end and exiting is the intended behaviour?

Not exactly; I'm just providing a historical reference point so we're sure
we've made the right decision.

} The following might do we what you want.  Maybe you'd better try it and
} then complain further.

OK, I'm good at that.

15931 has almost got it, but:

bash2-2.03$ (trap 'echo exiting' 0; true)
exiting
bash2-2.03$ 

zagzig% (trap 'echo exiting' 0; true)
zagzig% 

It matters where the trap was set, as well.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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