From owner-freebsd-questions@FreeBSD.ORG Thu Jan 8 06:13:12 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 76EB116A4CE for ; Thu, 8 Jan 2004 06:13:12 -0800 (PST) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9C5343D48 for ; Thu, 8 Jan 2004 06:13:10 -0800 (PST) (envelope-from lancelot@at-vantage.com) Received: from peter.at-vantage.com (adsl-68-89-117-169.dsl.rcsntx.swbell.net [68.89.117.169])i08ED8tx066426; Thu, 8 Jan 2004 09:13:08 -0500 Message-Id: <6.0.1.1.2.20040108081221.01bc7400@mail.at-vantage.com> X-Sender: peter@mail.at-vantage.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Thu, 08 Jan 2004 08:13:14 -0600 To: Eric F Crist From: "Lance E. Lott" In-Reply-To: <200401071736.42467.ecrist@adtechintegrated.com> References: <200401071736.42467.ecrist@adtechintegrated.com> Mime-Version: 1.0 Content-Type: multipart/mixed; x-avg-checked=avg-ok-47FF3B5E; boundary="=======37ED4895=======" cc: freebsd-questions@freebsd.org 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: Thu, 08 Jan 2004 14:13:12 -0000 --=======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=======--