Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
TRAPEXIT question
- X-seq: zsh-workers 7351
- From: greg@xxxxxxxxxxxxxx (Greg Klanderman)
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh list)
- Subject: TRAPEXIT question
- Date: Tue, 3 Aug 1999 14:50:54 -0400 (EDT)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: greg@xxxxxxxxxxxxxx
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