From: "Zefram" <zefram@tao.co.uk>
To: pws@ibmth.df.unipi.it (Peter Stephenson)
Cc: zsh-workers@math.gatech.edu
Subject: Re: Insidious exit status bugs
Date: Fri, 25 Sep 1998 11:50:57 +0100 (BST) [thread overview]
Message-ID: <199809251050.LAA23017@diamond.tao.co.uk> (raw)
In-Reply-To: <9809251009.AA12696@ibmth.df.unipi.it> from "Peter Stephenson" at Sep 25, 98 12:09:50 pm
Peter Stephenson wrote:
>First: the exit status from the `...` or $(...) is being explicitly
>passed back as lastval, i.e. $?. Why??? There's a variable cmdoutval
>whose only function in life is to remember that status to be assigned
>to lastval, so someone thought it was a good idea.
Assignments such as
foo=$(grep -l foo *)
are supposed to set $? to the exit status of the $() command. POSIX.2
clause 3.9.1 requires this.
-zefram
next prev parent reply other threads:[~1998-09-25 10:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-25 6:41 Bart Schaefer
1998-09-25 10:09 ` Peter Stephenson
1998-09-25 10:50 ` Zefram [this message]
1998-09-25 15:01 ` PATCH: 3.1.4: Insidious exit status bug Peter Stephenson
1998-09-25 16:43 ` 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=199809251050.LAA23017@diamond.tao.co.uk \
--to=zefram@tao.co.uk \
--cc=pws@ibmth.df.unipi.it \
--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).