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

Re: How to trap EXIT like in bash



On Apr 4,  1:25pm, Bart Schaefer wrote:
}
} } Tested on Cygwin and Ubuntu 14.10.
} 
} Oh.  You need "setopt TRAPS_ASYNC":
} 
} The signal isn't ignored, it just isn't handled right away.

The original discussion about TRAPS_ASYNC starts here:

http://www.zsh.org/mla/workers//2004/msg00460.html

It seems asserted in that thread that the Bash behavior is not only not
compatible with FreeBSD, but is also not POSIX compliant, which is why
the default for zsh got changed.



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