GNU bug report logs - #33128
cmp -l misses differences

Previous Next

Package: diffutils;

Reported by: Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>

Date: Tue, 23 Oct 2018 15:27:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#33128: closed (cmp -l misses differences)
Date: Wed, 24 Oct 2018 00:08:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 23 Oct 2018 17:07:47 -0700
with message-id <5d4c9f5f-ee04-ff2f-aaec-8bece4ab5d09 <at> cs.ucla.edu>
and subject line Re: [bug-diffutils] bug#33128: cmp -l misses differences
has caused the debbugs.gnu.org bug report #33128,
regarding cmp -l misses differences
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
33128: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33128
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>
To: "bug-diffutils <at> gnu.org" <bug-diffutils <at> gnu.org>
Subject: cmp -l misses differences
Date: Tue, 23 Oct 2018 12:44:34 +0000
[Message part 3 (text/plain, inline)]
Hi,

it seems that "cmp -l" doesn't list all differences. The attached blobs differ
among others at positions 0x437 (1079), 0x4b7 (1207) and 0x5b7 (1463).
One file contains 0x80 at these positions, the other 0. cmp shows neither of
these. I tested with 3.5 and Git Head.

It would be interesting to compare with other implementations, but I don't
have one available.

Regards,
Hans-Joachim Baader
[blob1 (application/octet-stream, attachment)]
[blob2 (application/octet-stream, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Hans-Joachim Baader <Hans-Joachim.Baader <at> cjt.de>,
 33128-done <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#33128: cmp -l misses differences
Date: Tue, 23 Oct 2018 17:07:47 -0700
On 10/23/18 5:44 AM, Hans-Joachim Baader wrote:
> it seems that "cmp -l" doesn't list all differences. The attached blobs differ
> among others at positions 0x437 (1079), 0x4b7 (1207) and 0x5b7 (1463).

cmp uses origin 1, not origin 0, and it reports all the positions you 
mentioned; it just adds 1 to them.



This bug report was last modified 6 years and 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.