On Tue, Apr 17, 2012 at 13:45:43 +0200, Jim Meyering wrote: > Aníbal Monsalve Salazar wrote: > ... > > Hello Jim, > > > > grep-2.11 introduced a regression related to the "-D skip" parameter > > option. > > > > With grep-2.10 (or less than 2.10): > > > > $ echo foo | grep -D skip foo; echo $? > > foo > > 0 > > > > With grep-2.11: > > > > $ echo foo | grep -D skip foo; echo $? > > 1 > > > > Timo suggests that the possible culprit is the code above. > > > > The Debian bug report is at http://bugs.debian.org/668585 > > Hi Aníbal > > Thanks for passing that along. > Here's a lightly-tested patch:
Hi, I had problems extracting the patch from the mail, so I had to use copy&paste. Also, the patch portion in main.c looked totally different than my main.c from 2.11. I added the "desc != STDIN_FILENO" and the brackets manually and it fixed the -D skip behaviour. Regards, Tino -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org