From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 15:39:06 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BAB816A4CE for ; Wed, 7 Jan 2004 15:39:06 -0800 (PST) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EB3943D39 for ; Wed, 7 Jan 2004 15:39:04 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (rrcs-midsouth-24-172-16-118.biz.rr.com [24.172.16.118]) i07Nd1ov022258; Wed, 7 Jan 2004 18:39:01 -0500 (EST) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) i07Ncpxc016506; Wed, 7 Jan 2004 18:38:51 -0500 (EST) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Eric F Crist In-Reply-To: <200401071736.42467.ecrist@adtechintegrated.com> References: <200401071736.42467.ecrist@adtechintegrated.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-a/x8+pOJhNQrV6higG79" Organization: MarcusCom, Inc. Message-Id: <1073518758.765.79.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 07 Jan 2004 18:39:18 -0500 X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on creme-brulee.marcuscom.com X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: FreeBSD User Questions List Subject: Re: What is the difference between ; and && X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 23:39:06 -0000 --=-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--