zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu
Subject: Re: Wrong Exit Codes?
Date: Wed, 17 Apr 1996 09:32:22 +0200	[thread overview]
Message-ID: <199604170732.JAA27188@hydra.ifh.de> (raw)
In-Reply-To: "esky@cs.ucla.edu"'s message of "Tue, 16 Apr 1996 12:31:12 MET." <9604161931.AA10844@marathon.cs.ucla.edu>

esky@cs.ucla.edu wrote:
> Is this a bug or a feature (I would call it a bug, unless there is an
> option to turn this behavior off):
> 
> If the previous command causes an error, then typing "exit" will exit
> zsh (2.6 beta14) with the previous command's non-zero exit code.

This is what the manual says it does.  It's also what the sh manual
says.  It seems to be standard behaviour.  Even the csh manual page
claims it does the same thing, except it actually doesn't (at least
not here).

  exit [ n ]
       Exit the shell with the exit code specified by n; if
       none is specified, use the exit code from the last
       command executed.  An EOF condition will also cause the
       shell to exit, unless the IGNOREEOF option is set.

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



      reply	other threads:[~1996-04-17  7:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-16 19:31 Eskandar Ensafi
1996-04-17  7:32 ` Peter Stephenson [this message]

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=199604170732.JAA27188@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).