Subject: Re: make -j and failure modes
To: Simon J. Gerraty <>
From: Greywolf <>
List: tech-userlevel
Date: 12/10/2003 17:07:48
Thus spake Simon J. Gerraty ("SJG> ") sometime Today...

SJG> >nbmake could always add "|| exit $?" to every command it passes to the
SJG> >shell, hence avoiding the need to trust "sh -e" at all.
SJG> No, let's not.  I did something like that for automagically adding
SJG> chdir ${.CURDIR} && to the start of commands under certain circumstances
SJG> so the makefiles would work untouched with $MAKEOBJDIRPREFIX.
SJG> Mainly so I could avoid the pain/arguments re all the Makefiles that would
SJG> need fixing otherwise.  That was wrong, and adding || exit $? blindly
SJG> would probably be wrong too.

Something just dawned on me, here:


	"(false && echo bad) || echo ok"

doesn't work as expected, then adding "|| exit $?" to the end of it
isn't going to make a difference.

SJG> Thanks
SJG> --sjg

Religion (re LIJ @n) n.
    What happens when spirituality is lost in the mire of the material.

Organized Religion (OR g@ nizd  re LIJ @n) n.
    1. What happens when religion finds money and unhappiness.
    2. Spirituality with mob/herd mentality and military funding.