Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jan 2004 08:13:14 -0600
From:      "Lance E. Lott" <lancelot@at-vantage.com>
To:        Eric F Crist <ecrist@adtechintegrated.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What is the difference between ; and &&
Message-ID:  <6.0.1.1.2.20040108081221.01bc7400@mail.at-vantage.com>
In-Reply-To: <200401071736.42467.ecrist@adtechintegrated.com>
References:  <200401071736.42467.ecrist@adtechintegrated.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--=======37ED4895=======
Content-Type: text/plain; x-avg-checked=avg-ok-47FF3B5E; charset=us-ascii;
	format=flowed
Content-Transfer-Encoding: 8bit

With ; each command is executed one right after the other, regardless of 
error condition.

With &&, if the error condition is non-zero, then the next command is not 
executed.

Lance.



At 05:36 PM 1/7/2004, you wrote:

>Just wondering what the difference is between ; and &&?
>
>I use make depend; make; make install and others say they use:
>
>make depend && make && make install
>--
>Eric F Crist
>AdTech Integrated Systems, Inc
>(612) 998-3588
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
>
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004

--=======37ED4895=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert;
	x-avg-checked=avg-ok-47FF3B5E
Content-Disposition: inline


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.558 / Virus Database: 350 - Release Date: 1/2/2004

--=======37ED4895=======--



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