Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Misc. musings on shell grammar (plus a bug?)
- X-seq: zsh-workers 18611
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Misc. musings on shell grammar (plus a bug?)
- Date: Mon, 16 Jun 2003 10:05:49 +0100
- In-reply-to: "Bart Schaefer"'s message of "Sun, 15 Jun 2003 20:27:14 -0000." <1030615202714.ZM20035@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> Musing about the grammar documentation, actually, not about the grammar
> itself.
I'm hoping to get 4.1.1 and 4.0.7 out pretty soon, except I'm rather
busy, but I don't suppose this is urgent.
> Now for the "bug" -- this is 4.0.6, but 4.1.1-testX behaves the same:
>
> schaefer[501] if false & then echo oops & fi
> [2] 20011
> [2] + exit 1 false
> oops
> [2] 20012
> [2] + done echo oops
>
> I suppose this makes sense -- this test would be false only if "false"
> could not be backgrounded, e.g., fork failure?
This is correct: from The Open Group Base Specifications Issue 6
IEEE Std 1003.1, 2003 Edition:
Exit Status
The exit status of an asynchronous list shall be zero.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author