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: Maxim Yegorushkin
Subject: Re: How to stop building when sub-make returns error
Date: Tue, 12 Jan 2010 23:25:16 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0

On 12/01/10 21:57, Paul Smith wrote:
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.

Oh, sorry I missed that.

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...

I admit I may have been spoilt by bash :)

Max







reply via email to

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