bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: diff - Odd behavior of opton --ignore-matching-lines


From: Eli Zaretskii
Subject: Re: diff - Odd behavior of opton --ignore-matching-lines
Date: Wed, 22 Feb 2012 21:53:37 +0200

> From: Jari Aalto <address@hidden>
> Date: Wed, 22 Feb 2012 14:29:41 -0500
> 
> 
> Test under Bash:
> 
>     echo -e "1 2\n1" > a
>     echo -e "2 3\n4" > b
>     diff -u -I '2' a b
> 
>     =>
> 
>     -1 2
>     -1
>     +2 3
>     +4
> 
> Isn't --ignore-matching-lines supposed to ignore all lines matching REGEXP
> "2" above?

No.  From "diff --help":

  -I RE  --ignore-matching-lines=RE  Ignore changes whose lines all match RE.
                                                                ^^^



reply via email to

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