Subject: Re: make -j and failure modes
To: Greywolf <>
From: Ben Harris <>
List: tech-userlevel
Date: 12/11/2003 13:44:12
On Wed, 10 Dec 2003, Greywolf wrote:

> Thus spake Ben Harris ("BH> ") sometime Today...
> BH> Well, in this regard Bash seems to follow the standard, and is shipped as
> BH> "sh" in some commercial systems.  There are areas (command searching, for
> BH> instance) where I think _everyone_ diverges from the standard, but this
> BH> isn't one.
> Bash/BSD-sh seem to be the _exceptions_ to this area, actually, but
> I'd need some more up-to-date verification:  Can anyone provide output
> from
> 	sh -ec '(false && echo bad); echo ok'
> for current versions of:
> 	- OSX /bin/sh [or is that BSD-sh?]

It's Bash, at least in 10.2.8, so "ok".

OSF/1 V5.1 follows AT&T, and is silent.

> I should probably read the spec closely, but I thought that () was
> simply a subshell, and it doesn't seem to me that it should contain
> any special meaning beyond that.

It's also a form of compound command, and "-e" is specified as only
applying to simple commands.

Ben Harris                                                   <>
Portmaster, NetBSD/acorn26           <URL:>