This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Toplevel Makefile.tpl cleanup 2/n part two
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: aoliva at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 4 Mar 2003 20:39:05 -0500
- Subject: Re: Toplevel Makefile.tpl cleanup 2/n part two
>> All the invocations of 'true' are, in fact, useless.
>
>Nope. Some make&shell combinations will fail if an `if' test fails
>and there's no `else true' clause.
You're saying that
blah:
if false ; then : fi ; true ;
will actually *fail* in certain make/shell combinations?
Sure, the exit value of the if statement can be 1 or whatever, but in
a ;-separated list, doesn't the exit value of the later statement
override it? Is there really a shell *that* broken?
Look at my code again please.
--Nathanael