Subject: Re: bin/36435: sh(1) bug with exit status of negated pipelines
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 06/07/2007 06:55:02
The following reply was made to PR bin/36435; it has been noted by GNATS.

From: David Laight <david@l8s.co.uk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/36435: sh(1) bug with exit status of negated pipelines
Date: Thu, 7 Jun 2007 08:01:11 +0100

 On Mon, Jun 04, 2007 at 01:50:00AM +0000, giles.lean@pobox.com wrote:
 > >Number:         36435
 > >Category:       bin
 > >Synopsis:       sh -c 'true && ! true | false' returns non-zero status
 > >Description:
 
 >     The following command has an exit status of one but should have zero:
 >         $ sh -c 'true && ! true | false'
 
 Ok, adding 'ckeckkwd = 2' to the top of 'pipeline()' (in parser.c)
 fixes the problem, but the error is rather more pervasive than that.
 
 I need to read the code and syntax rules further.
 
 	David
 
 -- 
 David Laight: david@l8s.co.uk