zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: PATCH: exit status
Date: Fri, 10 Nov 2006 07:58:08 -0800	[thread overview]
Message-ID: <061110075808.ZM4615@torch.brasslantern.com> (raw)
In-Reply-To: <200611100940.kAA9ewZY012583@news01.csr.com>

On Nov 10,  9:40am, Peter Stephenson wrote:
}
} A thread on the Austin group suggests the exit status of the shell
} should be available in exit traps.

I'm leaning towards Don Cragun's camp (the prior-to-this-patch zsh
behavior) on this one.  I think the answer (and a general issue about
the new hook functions, incidentally) is tied to the answer to this
other question:

What is the final exit status of the shell when the exit trap itself
calls exit?

If
	trap 'exit 42' EXIT; exit 1

returns 42 to the calling environment, then Korn and the GNU guys are
correct.  If it exits 1, then Don Cragun is correct.

Similarly, what happens if the zshexit hook calls exit?  What happens
if the zshexit hook calls "return 37"?


  reply	other threads:[~2006-11-10 15:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10  9:40 Peter Stephenson
2006-11-10 15:58 ` Bart Schaefer [this message]
2006-11-10 16:09   ` Peter Stephenson
2006-11-11  5:28     ` Bart Schaefer
2006-11-11 13:13       ` Peter Stephenson

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=061110075808.ZM4615@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.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).