[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure scripts rely on "diff"; could use "cmp" instead if availab

From: Paul Eggert
Subject: Re: configure scripts rely on "diff"; could use "cmp" instead if available
Date: Fri, 27 May 2011 09:27:37 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110424 Thunderbird/3.1.10

On 05/27/11 07:18, Bob Friesenhahn wrote:
> It seems wise to always use the most simple and most common utility to 
> perform the necessary task.

For the tasks of comparing text files and reporting a problem when there
is a difference, it's typically better to use 'diff' than 'cmp',
because the output is a more useful diagnostic.  Let's not change
Autoconf to use 'cmp' by default.

Busybox could trivially support 'diff' by using a terrible diff
algorithm.  This would conform to POSIX and would make the
autoconf-generated scripts work (albeit not much better than
'cmp' would).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]