From owner-freebsd-ports@FreeBSD.ORG Sat Mar 13 03:01:40 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 D0A6416A4CE for ; Sat, 13 Mar 2004 03:01:40 -0800 (PST) Received: from postman.arcor.de (newsread1.arcor-online.net [151.189.0.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DB5443D1D for ; Sat, 13 Mar 2004 03:01:40 -0800 (PST) (envelope-from eikemeier@fillmore-labs.com) Received: from fillmore.dyndns.org (port-212-202-51-138.reverse.qsc.de [212.202.51.138]) (authenticated bits=0)i2DAvqck028282 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 13 Mar 2004 11:57:53 +0100 (MET) Received: from [172.16.0.2] (helo=fillmore-labs.com) by fillmore.dyndns.org with esmtp (Exim 4.30; FreeBSD) id 1B26px-000CoT-Lq; Sat, 13 Mar 2004 11:57:49 +0100 Message-ID: <4052E92D.7050000@fillmore-labs.com> Date: Sat, 13 Mar 2004 11:57:49 +0100 From: Oliver Eikemeier Organization: Fillmore Labs GmbH - http://www.fillmore-labs.com/ MIME-Version: 1.0 To: Matthias Andree References: <20040313002807.GA13745@merlin.emma.line.org> <40525BE9.2050208@fillmore-labs.com> <20040313102423.GA6018@merlin.emma.line.org> In-Reply-To: <20040313102423.GA6018@merlin.emma.line.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable User-Agent: KMail/1.5.9 cc: ports@freebsd.org 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 11:01:40 -0000 Matthias Andree wrote: > On Sat, 13 Mar 2004, Oliver Eikemeier wrote: >=20 >>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=20 >>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? >=20 > 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=AE 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. make will run the shell with -e unless the line starts with `-' or `-i' is given. GNU make is not used for ports Makefiles, only for the ones in the distribution, and you don't want to Patch Them All(tm), do you? Finally I'm not sure if simply ignoring the following command is the right thing to do. I can construct an example where this is fatal too, but IMHO all such examples would be pathological. -Oliver