retiltle 454690 "grep -v" alway returns 0 thanks On Thu, Dec 13, 2007 at 10:11:41PM +0100, Eduard Bloch wrote: >reassign 454690 grep >thanks > >#include <hallo.h> >* Eduard Bloch [Thu, Dec 13 2007, 08:41:41PM]: >>#include <hallo.h> > >>... found it and tried to load... >> >>> + grep -v not.found >> >>... detected "not found" in the modprobe output... > >Wait a sec, I see the problem. The current "grep -v" apparently always >returns 0, no matter whether the expression matched something or not. >It worked with earlier versions though, i.e. non-zero was returned if >the expression matched at least once (and so some output was >supressed). > >I will work around the issue in sl-modem-daemon ASAP but it remains a >problem in grep. > >Regards, >Eduard. >-- ><LGS> Halloechen, ihr Spinner, so frueh auf? ><nusse> nein, wir schlafen alle im kollektiv ><knorke> mein alkoven ist kaputt ><teq> alkohol kaputt?
I can reproduce this bug. grep -V GNU grep 2.5.4 echo -e 'hola\nhello' | grep -v hola; echo $? hello 0 echo -e 'hola\nhello' | grep -v hallo; echo $? hola hello 0 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org