--- Begin Message ---
Subject: |
cmp -l misses differences |
Date: |
Tue, 23 Oct 2018 12:44:34 +0000 |
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
Description: blob1
blob2
Description: blob2
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug-diffutils] bug#33128: cmp -l misses differences |
Date: |
Tue, 23 Oct 2018 17:07:47 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
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.
--- End Message ---