Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Jan 2004 17:43:08 -0600
From:      Eric F Crist <ecrist@adtechintegrated.com>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        FreeBSD User Questions List <freebsd-questions@freebsd.org>
Subject:   Re: What is the difference between ; and &&
Message-ID:  <200401071743.08892.ecrist@adtechintegrated.com>
In-Reply-To: <1073518758.765.79.camel@gyros>
References:  <200401071736.42467.ecrist@adtechintegrated.com> <1073518758.765.79.camel@gyros>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 07 January 2004 05:39 pm, Joe Marcus Clarke wrote:
> On Wed, 2004-01-07 at 18:36, Eric F Crist wrote:
> > Just wondering what the difference is between ; and &&?
> >
> > I use make depend; make; make install and others say they use:
>
> This notation will run each command, one after the other, regardless of
> the exit status of the previous command.
>
> > make depend && make && make install
>
> This notation will only run the subsequent command if the previous
> command exited cleanly without error.  This is a much safer syntax.
>
> Joe

Thanks for the clarification!  After 5 years, I will finally change my 
incorrect ways.  I've learned something new today, I guess that means I can 
go home!



-- 
Eric F Crist
AdTech Integrated Systems, Inc
(612) 998-3588



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401071743.08892.ecrist>