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



_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to