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: Daniele Grassini <danielegrassini <at> libero.it>
To: 36960 <at> debbugs.gnu.org
Subject: bug#36960: 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 141 days ago.

Previous Next


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