Subject: Re: make: sh -e shouldn't be used in compat mode?
To: Simon Gerraty <>
From: James Chacon <>
List: tech-toolchain
Date: 05/05/2004 15:27:39
On Wed, May 05, 2004 at 01:01:32PM -0700, Simon Gerraty wrote:
> A while back, parallel builds (-jN) were fixed to avoid use of sh -e
> (thanks jmc!).  But compat mode still uses it and this is apparently
> not compatible with Posix 
> (see:
> At least when .POSIX: is present in a makefile, -e should not be used,
> but I suspect it would be better to ditch it all together.
> This would at least be compatible with -jN ;-)
> Thoughts?

Musta missed that. -e is a valid POSIX option to sh, but why compat mode
would use it is beyond me. Compat doesn't group commands and just executes
each line one by one so checking return code should be enough there.