From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 15:43:53 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 856FD16A4CE for ; Wed, 7 Jan 2004 15:43:53 -0800 (PST) Received: from radicalv.com (secure.radicalv.com [216.118.91.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9245043D76 for ; Wed, 7 Jan 2004 15:43:16 -0800 (PST) (envelope-from ecrist@adtechintegrated.com) Received: (qmail 24738 invoked from network); 7 Jan 2004 23:43:07 -0000 Received: from unknown (HELO 192.168.1.100) (66.41.18.160) by mail.radicalv.com with SMTP; 7 Jan 2004 23:43:07 -0000 From: Eric F Crist Organization: AdTech Integrated Systems, Inc To: Joe Marcus Clarke Date: Wed, 7 Jan 2004 17:43:08 -0600 User-Agent: KMail/1.5 References: <200401071736.42467.ecrist@adtechintegrated.com> <1073518758.765.79.camel@gyros> In-Reply-To: <1073518758.765.79.camel@gyros> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401071743.08892.ecrist@adtechintegrated.com> 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:43:53 -0000 On Wednesday 07 January 2004 05:39 pm, Joe Marcus Clarke wrote: > On Wed, 2004-01-07 at 18:36, Eric F Crist wrote: > > Just wondering what the difference is between ; and &&? > > > > 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. > > > 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 Thanks for the clarification! After 5 years, I will finally change my incorrect ways. I've learned something new today, I guess that means I can go home! -- Eric F Crist AdTech Integrated Systems, Inc (612) 998-3588