Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Trap and exit
- X-seq: zsh-users 3483
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Akim Demaille" <akim@xxxxxxxx>, <zsh-users@xxxxxxxxxxxxxx>
- Subject: RE: Trap and exit
- Date: Fri, 27 Oct 2000 15:49:22 +0400
- Importance: Normal
- In-reply-to: <000001c0400a$54f99fb0$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
> > #! /bin/sh
> > trap 'echo trap: $?' 0
> > exit 59
> > /tmp % ash ./foo.sh
> > trap: 59
>
> It looks like a bug in Zsh. Quoting Unix 98:
>
OTOH both sh and ksh here behave the same as Zsh. Unless there are
compatibility reasons, I still prefer sh/bash.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author