Date: Wed, 07 Jan 2004 18:39:18 -0500 From: Joe Marcus Clarke <marcus@marcuscom.com> To: Eric F Crist <ecrist@adtechintegrated.com> Cc: FreeBSD User Questions List <freebsd-questions@freebsd.org> Subject: Re: What is the difference between ; and && Message-ID: <1073518758.765.79.camel@gyros> 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
--=-a/x8+pOJhNQrV6higG79 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-01-07 at 18:36, Eric F Crist wrote: > Just wondering what the difference is between ; and &&? >=20 > 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. >=20 > 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 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-a/x8+pOJhNQrV6higG79 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQA//Jimb2iPiv4Uz4cRAgSaAKCbfyGKW9NzSKKyzbOUtELxYEA3JwCeL7rS 4oAsXlwlhLS/a93nISviiFg= =uBo4 -----END PGP SIGNATURE----- --=-a/x8+pOJhNQrV6higG79--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1073518758.765.79.camel>