Date: Sat, 13 Mar 2004 11:24:23 +0100 From: Matthias Andree <ma@dt.e-technik.uni-dortmund.de> To: Oliver Eikemeier <eikemeier@fillmore-labs.com> Cc: Matthias Andree <ma@dt.e-technik.uni-dortmund.de> Subject: Re: ports/64037 and the alleged && -> ; failure from March 2002 Message-ID: <20040313102423.GA6018@merlin.emma.line.org> In-Reply-To: <40525BE9.2050208@fillmore-labs.com> References: <20040313002807.GA13745@merlin.emma.line.org> <40525BE9.2050208@fillmore-labs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040313102423.GA6018>