Hello. Received this from the Debian bug system.
Sorry for the delay in processing it. I have checked and it may still be reproduced with diffutils 3.0.50 from git. Thanks. ---------- Forwarded message ---------- From: Bekir Dogan <[email protected]> To: Debian Bug Tracking System <[email protected]> Date: Wed, 04 May 2011 19:30:37 +0300 Subject: Bug#625630: diffutils: diff --ignore-matching-lines doesn't ignore newlines if they near a different line Package: diffutils Version: 1:3.0-1 Severity: normal This example reports nothing different, really ignores lines with 'xxx' as expected: $ /usr/bin/diff --ignore-matching-lines='^xxx.*$' <(echo -e 'aaa\nbbb\nccc\nddd\nxxx\neee\nxxx\nfff') <(echo -e 'aaa\nbbb\nccc\nddd\neee\nfff') But this example reports the first 'xxx' line as difference near the other different line ('y'), and does not report the second 'xxx' line: $ /usr/bin/diff --ignore-matching-lines='^xxx.*$' <(echo -e 'aaa\nbbb\nccc\nddd\nxxx\ny\neee\nxxx\nfff') <(echo -e 'aaa\nbbb\nccc\nddd\neee\nfff') 5,6d4 < xxx < y Expected result should be like this: $ /usr/bin/diff --ignore-matching-lines='^xxx.*$' <(echo -e 'aaa\nbbb\nccc\nddd\nxxx\ny\neee\nxxx\nfff') <(echo -e 'aaa\nbbb\nccc\nddd\neee\nfff') 6d5 < y [...]
