[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] Bug#625630: diffutils: diff --ignore-matching-lines does
From: |
Santiago Vila |
Subject: |
[bug-diffutils] Bug#625630: diffutils: diff --ignore-matching-lines doesn't ignore newlines if they near a different line (fwd) |
Date: |
Thu, 4 Aug 2011 15:32:52 +0200 (CEST) |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
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 <address@hidden>
To: Debian Bug Tracking System <address@hidden>
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
[...]
- [bug-diffutils] Bug#625630: diffutils: diff --ignore-matching-lines doesn't ignore newlines if they near a different line (fwd),
Santiago Vila <=