help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to stop building when sub-make returns error


From: Paul Smith
Subject: Re: How to stop building when sub-make returns error
Date: Tue, 12 Jan 2010 16:57:14 -0500

On Tue, 2010-01-12 at 21:43 +0000, Maxim Yegorushkin wrote:
> > Yeah, it's ugly, but it works everywhere.
> 
> Why not simply:
> 
>    $(MAKE) error 2>&1 | grep error; exit ${PIPESTATUS[0]}
> 
> ?

Note the sentence I quoted from Philip's email.

PIPESTATUS is a bash-specific feature, so it in no way "works
everywhere".  It won't even work on all GNU/Linux systems, including one
of the most popular (Ubuntu).  And it has almost no chance at all of
working on any non-GNU/Linux system.

It would make my "real life" job so much easier if people writing
scripts would understand that bash != sh, and that bash is not available
everywhere...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]