GNU bug report logs - #36960
mistake with v param

Previous Next

Package: grep;

Reported by: Daniele Grassini <danielegrassini <at> libero.it>

Date: Wed, 7 Aug 2019 16:19:02 UTC

Severity: normal

Tags: notabug

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Daniele Grassini <danielegrassini <at> libero.it>
Subject: bug#36960: closed (Re: bug#36960: mistake with v param)
Date: Thu, 02 Jan 2020 09:47:02 +0000
[Message part 1 (text/plain, inline)]
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 36960 <at> debbugs.gnu.org.

-- 
36960: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36960
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Daniele Grassini <danielegrassini <at> libero.it>
Cc: 36960-done <at> debbugs.gnu.org
Subject: Re: bug#36960: mistake with v param
Date: Thu, 2 Jan 2020 01:46:24 -0800
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.

[Message part 3 (message/rfc822, inline)]
From: Daniele Grassini <danielegrassini <at> libero.it>
To: bug-grep <at> gnu.org
Subject: mistake with v param
Date: Wed, 7 Aug 2019 17:45:32 +0200
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





This bug report was last modified 5 years and 140 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.