[gnu.utils.bug] cmp bug

chris@STAR2.CM.UTEXAS.EDU (Christopher Marshall) (02/10/90)

     I have compiled cmp on both a SYSVr3 box and a BSD machine and
found that the reported location of the first error using the -l option is not
correct.
     Cmp appears to report twice the actual 1st error location less 1.
All subsequent locations are shifted by the difference between the
actual location of the first error and the reported location of the
first error.

e.g.  Two files differing at the 8th byte would generate this output:
    15 164  70
...

while /bin/cmp -l reports
     8 164  70
...

Christopher Marshall
chris@star2.cm.utexas.edu
chm@emx.utexas.edu