Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Misc. musings on shell grammar (plus a bug?)



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