Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Trap and exit
- X-seq: zsh-users 3489
- From: Akim Demaille <akim@xxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Trap and exit
- Date: 27 Oct 2000 15:28:43 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- Organization: EPITA / LRDE
- References: <000001c0400a$54f99fb0$21c9ca95@xxxxxxxxxxxxxx>, <0G330024BBOLZ9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxx>
>>>>> "Peter" == Peter Stephenson <pws@xxxxxxx> writes:
Peter> But then, you could argue that the false was the last command
Peter> before the script exited, and is hence the one referred to in
Peter> this case --- given that this is exactly what happens with an
Peter> implicit exit by falling off the end.
Whatever you decide, please remain compatible with the workaround used
in Autoconf: using `(exit 77); exit 77' instead of `exit 77' must have
the desired property: the trap is triggered, and it receives $? = 77.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author