What is the difference between ; and &&

Lance E. Lott lancelot at at-vantage.com
Thu Jan 8 06:13:12 PST 2004


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 at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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
-------------- next part --------------

---
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


More information about the freebsd-questions mailing list