From owner-freebsd-ports@FreeBSD.ORG Sat Mar 13 02:24:28 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88F6716A4CE for ; Sat, 13 Mar 2004 02:24:28 -0800 (PST) Received: from mail.dt.e-technik.uni-dortmund.de (mail.dt.E-Technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEB6D43D41 for ; Sat, 13 Mar 2004 02:24:27 -0800 (PST) (envelope-from ma@dt.e-technik.uni-dortmund.de) Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])BDF4724A7D; Sat, 13 Mar 2004 11:24:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by merlin.emma.line.org (Postfix) with ESMTP id 30B13A7691; Sat, 13 Mar 2004 11:24:24 +0100 (CET) Received: from merlin.emma.line.org ([127.0.0.1]) by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06574-02; Sat, 13 Mar 2004 11:24:23 +0100 (CET) Received: by merlin.emma.line.org (Postfix, from userid 500) id A28E4A575C; Sat, 13 Mar 2004 11:24:23 +0100 (CET) Date: Sat, 13 Mar 2004 11:24:23 +0100 From: Matthias Andree To: Oliver Eikemeier Message-ID: <20040313102423.GA6018@merlin.emma.line.org> Mail-Followup-To: Oliver Eikemeier , ports@freebsd.org References: <20040313002807.GA13745@merlin.emma.line.org> <40525BE9.2050208@fillmore-labs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <40525BE9.2050208@fillmore-labs.com> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at m2a2.dyndns.org cc: ports@freebsd.org cc: Matthias Andree Subject: Re: ports/64037 and the alleged && -> ; failure from March 2002 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2004 10:24:28 -0000 On Sat, 13 Mar 2004, Oliver Eikemeier wrote: > I don't agree with the arguments, but I don't understand > > - Switch from ; to && in order to not hide cd errors or run the make > command in > the wrong directory. > > either. Both give > > cd: can't cd to /nonexistent > *** Error code 2 > > and stop the build, or do you do use make -i regularly? Is it guaranteed that make will always under all circumstances run the shell with the "-e" flag? And if it does, does GNU make from the ports do that as well? The '&&' variant will do The Right Thing® with and without the -e flag passed down the /bin/sh, whereas a 'cd /nonexistent ; rm -rf * .??*' will happily erase the current working directory if /nonexistent is non-existent and the shell is run without -e. -- Matthias Andree Encrypt your mail: my GnuPG key ID is 0x052E7D95