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

TRAPEXIT question



Hi,

I'd like to define a funtion that when invoked defines a TRAPEXIT
function to save my directory stack and history before the shell
exits.  Unfortunately, it seems that if TRAPEXIT is defined from
within a shell function or even from a "source"d file, the exit 
hook gets called when the function exits or sourced file finishes,
rather than when the shell itself exits.

Is there any way around this?

thanks,

Greg



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