Greg Wooledge schrieb am 2006-02-14: > On Mon, Feb 13, 2006 at 10:27:52PM +0100, Matthias Andree wrote: > > [ -f rpl8 ] && whatever > > > > fails if rpl8 is missing, and does not only skip "whatever" (here: > > install), but also exits the whole compound command with code 1, which > > aborts the make target. > > > > "[ CONDITION ] && whatever" is therefore a Makefile pitfall. > > Try this: > > [ -f rpl8 ] && whatever || true
Or, less obscure: if [ -f rpl8 ] ; then whatever ; fi The "|| true" can be shortened to "|| :" with most shells. -- Matthias Andree -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

