zsh-workers
 help / color / mirror / code / Atom feed
From: greg@klanderman.net (Greg Klanderman)
To: zsh-workers@sunsite.auc.dk (Zsh list)
Subject: TRAPEXIT question
Date: Tue, 3 Aug 1999 14:50:54 -0400 (EDT)	[thread overview]
Message-ID: <14247.14862.404409.655828@pdx.itasoftware.com> (raw)


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


             reply	other threads:[~1999-08-03 18:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-08-03 18:50 Greg Klanderman [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=14247.14862.404409.655828@pdx.itasoftware.com \
    --to=greg@klanderman.net \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).