Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Tino Keitel
Package: grep Version: 2.11-2 Severity: important grep does not match anything when reading from stdin. Reading from a file works. $ echo foo foo $ grep . foo foo $ cat foo | grep . $ echo foo | grep . $ -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy:

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Aníbal Monsalve Salazar
On Tue, Apr 17, 2012 at 09:23:58AM +0200, Tino Keitel wrote: Package: grep Version: 2.11-2 Severity: important grep does not match anything when reading from stdin. Reading from a file works. $ echo foo foo $ grep . foo foo $ cat foo | grep . $ echo foo | grep . $ It works for me, please see

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Tino Keitel
On Tue, Apr 17, 2012 at 18:07:29 +1000, Aníbal Monsalve Salazar wrote: On Tue, Apr 17, 2012 at 09:23:58AM +0200, Tino Keitel wrote: Package: grep Version: 2.11-2 Severity: important grep does not match anything when reading from stdin. Reading from a file works. $ echo foo foo $ grep

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Tino Keitel
On Tue, Apr 17, 2012 at 10:23:28 +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 18:07:29 +1000, Aníbal Monsalve Salazar wrote: On Tue, Apr 17, 2012 at 09:23:58AM +0200, Tino Keitel wrote: Package: grep Version: 2.11-2 Severity: important grep does not match anything when reading

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Tino Keitel
On Tue, Apr 17, 2012 at 10:25:03 +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 10:23:28 +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 18:07:29 +1000, Aníbal Monsalve Salazar wrote: On Tue, Apr 17, 2012 at 09:23:58AM +0200, Tino Keitel wrote: Package: grep Version: 2.11-2

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Aníbal Monsalve Salazar
On Tue, Apr 17, 2012 at 11:08:16AM +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 10:25:03 +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 10:23:28 +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 18:07:29 +1000, Aníbal Monsalve Salazar wrote: On Tue, Apr 17, 2012 at 09:23:58AM +0200, Tino

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Aníbal Monsalve Salazar
On Tue, Apr 17, 2012 at 08:13:49PM +1000, Aníbal Monsalve Salazar wrote: On Tue, Apr 17, 2012 at 11:08:16AM +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 10:25:03 +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 10:23:28 +0200, Tino Keitel wrote: On Tue, Apr 17, 2012 at 18:07:29 +1000,

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Jim Meyering
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

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Aníbal Monsalve Salazar
On Tue, Apr 17, 2012 at 01:45:43PM +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 |

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Tino Keitel
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

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Tino Keitel
On Tue, Apr 17, 2012 at 14:23:48 +0200, Tino Keitel wrote: Hi, I had problems extracting the patch from the mail, so I had to use copypaste. Also, the patch portion in main.c looked totally different Forgot the patch, it's attached. Regards, Tino --- grep-2.11_orig/src/main.c 2012-04-17

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Jim Meyering
Aníbal Monsalve Salazar wrote: ... Tino suggests that the possible culprit is the code above. The Debian bug report is at http://bugs.debian.org/668585 Typo. The correct address is http://bugs.debian.org/669084 Thanks! I've adjusted the log: * NEWS (Bug fixes): Mention it, and add a few

Bug#669084: grep does not match anything when reading from stdin

2012-04-17 Thread Jim Meyering
Tino Keitel wrote: On Tue, Apr 17, 2012 at 14:23:48 +0200, Tino Keitel wrote: Hi, I had problems extracting the patch from the mail, so I had to use copypaste. Also, the patch portion in main.c looked totally different Forgot the patch, it's attached. Regards, Tino ---