[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bugreport on parameters
From: |
Eric Blake |
Subject: |
Re: Bugreport on parameters |
Date: |
Mon, 28 Mar 2011 12:52:04 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
On 03/28/2011 06:19 AM, Kai wrote:
> Hi,
>
> Since -L displays not matching files and -v inverts the result: Shouldn't -Lv
> produce the same output as -l does?
Thanks for the report, but this is not a bug, rather a misunderstanding
of the documentation.
-L displays files that had no matches on any lines. The opposite of
this is the set of files that had a match on every single line.
-l displays files that had a match on at least one line. The opposite
of this is the set of files that had at least one line without a match.
That is four sets of files, not two, therefore, -l and -L are not
opposites, but orthogonal. -v toggles which lines match, so with -L, it
toggles between files that have no matches and files that match on every
single line, while with -l, it toggles between files that have at least
one match to files that have at least one mismatch.
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature