From: Akim Demaille <akim@epita.fr>
To: zsh-users@sunsite.auc.dk
Subject: Re: Trap and exit
Date: 27 Oct 2000 15:28:43 +0200 [thread overview]
Message-ID: <mv4vgue76r8.fsf@nostromo.lrde.epita.fr> (raw)
In-Reply-To: <0G330024BBOLZ9@la-la.cambridgesiliconradio.com>
>>>>> "Peter" == Peter Stephenson <pws@csr.com> 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.
next prev parent reply other threads:[~2000-10-27 13:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-27 10:44 Akim Demaille
2000-10-27 11:37 ` Andrej Borsenkow
2000-10-27 11:49 ` Andrej Borsenkow
2000-10-27 12:47 ` Akim Demaille
2000-10-27 13:05 ` Andrej Borsenkow
2000-10-27 12:46 ` Akim Demaille
2000-10-27 13:06 ` Andrej Borsenkow
2000-10-27 13:19 ` Peter Stephenson
2000-10-27 13:28 ` Akim Demaille [this message]
2000-10-27 13:39 ` Andrej Borsenkow
2000-10-27 15:26 ` 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=mv4vgue76r8.fsf@nostromo.lrde.epita.fr \
--to=akim@epita.fr \
--cc=zsh-users@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).