[PATCH] Allow "make compare" to use "make gnucompare" automatically
Alexandre Oliva
aoliva@redhat.com
Thu May 1 01:12:00 GMT 2003
On Apr 30, 2003, Andreas Schwab <schwab@suse.de> wrote:
> Alexandre Oliva <aoliva@redhat.com> writes:
>> On Apr 30, 2003, Andreas Schwab <schwab@suse.de> wrote:
>>
>> > if cmp --ignore-initial=2 t1 t2 &&
>> > if cmp --ignore-initial=1 t1 t2; then false; else true; fi; then
>>
>> Are you sure this is portable? I've always wondered about it, never
>> daring to try it with a wider audience :-)
> I can't see anything unportable here, it's just plain Bourne Shell.
I'm not sure the exit status of the last command of then or else
is always used as the exit status of the entire if.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Gcc-patches
mailing list