On Sun, 16 Dec 2001, Nicholas Clark wrote:

> On Wed, Dec 12, 2001 at 05:02:29PM -0500, Andy Dougherty wrote:
> > 
> >     cd foo && $(MAKE) && cd ..
> > 
> so if submake fails, returning an exit code non-zero you don't cd .. ?

Yup.  Better not fail, then.

> assuming you've got some sort of subshell logic (biggie?) you mean

Biggie, I'd expect, but can't test.

> cd foo && ($(MAKE); cd ..)

> I've got some C somewhere I wrote to implement a very dumb shell. Its 3
> builtin functions where chdir, && and ||

Someone's eventually going to rebuild the whole build system, so I
wouldn't recommend working too hard to make this system elegant.  If it
limps along ok for now, that's probably ok.

-- 
    Andy Dougherty              [EMAIL PROTECTED]
    Dept. of Physics
    Lafayette College, Easton PA 18042

Reply via email to