Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (2) test for trap EXIT fix.
- X-seq: zsh-workers 15932
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>, zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: (2) test for trap EXIT fix.
- Date: Wed, 3 Oct 2001 16:16:35 +0000
- In-reply-to: <19164.1002122295@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <19164.1002122295@xxxxxxx>
On Oct 3, 4:18pm, Peter Stephenson wrote:
}
} Are you saying this is correct and the inconsistency between falling off
} the end and exiting is the intended behaviour?
Not exactly; I'm just providing a historical reference point so we're sure
we've made the right decision.
} The following might do we what you want. Maybe you'd better try it and
} then complain further.
OK, I'm good at that.
15931 has almost got it, but:
bash2-2.03$ (trap 'echo exiting' 0; true)
exiting
bash2-2.03$
zagzig% (trap 'echo exiting' 0; true)
zagzig%
It matters where the trap was set, as well.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author