Subject: bug#36960: closed (Re: bug#36960: mistake with v param)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 02 Jan 2020 09:47:02 +0000

Your bug report

#36960: mistake with v param

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
36960: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36960
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#36960: mistake with v param
From: Paul Eggert <[email-masked]>
To: Daniele Grassini <[email-masked]>
Cc: [email-masked]
Date: Thu, 2 Jan 2020 01:46:24 -0800
List-Id: <debbugs-submit.debbugs.gnu.org>

On 8/7/19 8:45 AM, Daniele Grassini wrote:
> so why the '-o' option check the regular exp, but the '-v' don't do his job??

The -v option was working as documented. It means, "select lines that *don't"
match the pattern", and since all input lines matched your pattern grep didn't
output anything.

Subject: mistake with v param
From: Daniele Grassini <[email-masked]>
To: [email-masked]
Date: Wed, 7 Aug 2019 17:45:32 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

hi to all.

for first i'm very sorry for my english..

when i'm using grep in this way to get the module path:

     cd $(sudo modprobe -v --show-depends r8168 | grep -Eoi 
"(\/[[:alnum:]\.\-]+){1,}" | grep -ivE "[a-z]{1}[0-9]+\.ko$")

...it return nothing

but if i switch '-v' to '-o' to test the command, it will print the right :

     $ sudo modprobe -v --show-depends r8168 | grep -Eoi 
"(\/[[:alnum:]\.\-]+){1,}" | grep -ioE "[a-z]{1}[0-9]+\.ko$"

     $ r8168.ko

so why the '-o' option check the regular exp, but the '-v' don't do his 
job??

Many Thanks

Regards