Subject: Re: make -j and failure modes
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 12/14/2003 01:36:07
In article <20031213221625.73D68687D@void.crufty.net>,
Simon J. Gerraty <sjg@crufty.net> wrote:
>
>On Sat, 13 Dec 2003 11:36:37 -0600, James Chacon writes:
>>Going with && between all commands (even newline separated and using sh -v)
>>will make setting up the script more complex in order to deal with these
>>sorts of things.
>
>Sorry, I must be short of caffeine today ;-) can you give me an
>example where replacing an unescaped newline with || exit $? works but
>replacing it with && does not? That's all we are talking about yes?
sleep 10 & -> sleep 10 &&&
sleep 10 & -> sleep 10 &|| exit $?
Of course both cases work if you add whitespace.
christos