[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-diffutils] Bug#625630: diffutils: diff --ignore-matching-lines
From: |
Paul Eggert |
Subject: |
Re: [bug-diffutils] Bug#625630: diffutils: diff --ignore-matching-lines doesn't ignore newlines if they near a different line (fwd) |
Date: |
Thu, 04 Aug 2011 06:38:31 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11 |
On 08/04/11 06:32, Santiago Vila wrote:
> $ /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
That's the expected behavior. The documentation says that
--ignore-matching-lines
only suppresses a difference if every changed line in the hunk matches the RE.
Here, "y" does not match the RE, so the entire hunk is output. So I don't
see a bug here.