bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] Bizarre failure of -I to ignore lines


From: Davis Herring
Subject: [bug-diffutils] Bizarre failure of -I to ignore lines
Date: Wed, 21 Sep 2011 18:05:55 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101220 Lanikai/3.1.7

(First, apologies for the significant size of the attached files; I
managed to trim 85% of their content before I could no longer reproduce
this behavior.)

Comparing the two attached profiling files with "diff -I calls m1.dat
m2.dat" (using diff version 2.8.1) produces

3254,3256c3254,3256
< Norm
< There were   calls in    1.259 s.
< There were   calls in    1.040 s.
---
> Norm
> There were   calls in    1.249 s.
> There were   calls in    1.034 s.
7623,7625c7623,7625
< Norm
< There were   calls in    1.255 s.
< There were   calls in    1.044 s.
---
> Norm
> There were   calls in    1.272 s.
> There were   calls in    1.060 s.

even though no line is changed that does not contain "calls" and many
lines are changed that do (a straight diff is 4420 lines).  Adding
--minimal makes it go away, as do various changes to the file.

Am I asking too much of the -I option, or is this a bug?  (It would seem
the latter since it identifies the "Norm " lines as changed in the
output even though they are identical.)

Thanks,
Davis Herring

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

Attachment: m1.dat
Description: Text document

Attachment: m2.dat
Description: Text document


reply via email to

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