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

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages diffutils depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib

diffutils recommends no packages.

Versions of packages diffutils suggests:
pn  diffutils-doc                 <none>     (no description available)
ii  wdiff                         0.6.3-1    Compares two files word by word

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to