bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] bug#22816: bug#22816: cmp --verbose EOF message could be


From: Paul Eggert
Subject: [bug-diffutils] bug#22816: bug#22816: cmp --verbose EOF message could be more verbose
Date: Thu, 4 May 2017 17:24:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0

On 05/04/2017 10:28 AM, Jim Meyering wrote:
Making cmp perform that task does not seem worthwhile, because one
would have to choose between always counting newlines (like wc -l
does), and thus incurring this added cost all the time, or accepting a
partial (and racy) solution of rereading the regular file upon EOF.

There's a third way, that satisfies Dan Jacobson's request in the usual case, without incurring added cost. Proposed patch attached, with a simple test for 'cmp' (which is a good thing to have in any event).

Attachment: 0001-cmp-report-prefix-length-when-one-file-is-shorter.patch
Description: Text Data


reply via email to

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