This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Allow "make compare" to use "make gnucompare" automatically


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.
You could replace `false' by `(exit 1)' and `true' by `:' if you
prefer builtins, but that's all.

Andreas.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]