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 [email protected] +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
