zsh-workers
 help / color / mirror / code / Atom feed
* TRAPEXIT question
@ 1999-08-03 18:50 Greg Klanderman
  1999-08-04  4:40 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Greg Klanderman @ 1999-08-03 18:50 UTC (permalink / raw)
  To: Zsh list


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-08-05 10:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-08-03 18:50 TRAPEXIT question Greg Klanderman
1999-08-04  4:40 ` Bart Schaefer
1999-08-04  7:47   ` Peter Stephenson
1999-08-04 21:54   ` Greg Klanderman
1999-08-05  8:34     ` Peter Stephenson
1999-08-05 10:51       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).