bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep bug report: --only-matching fails


From: address@hidden
Subject: grep bug report: --only-matching fails
Date: Fri, 28 Sep 2007 17:08:53 -0500

When trying to match a repeated character class, the match works when
using grep with no arguments, but the match fails when using -o (show
only the matching pattern).  I've attached grepbug-cli.txt, which
demonstrates the bug, and the input file I used,
grepbug-onlymatching.txt.  I even tried throwing on perl support with
-P, because I know character classes are defined in this way with Perl
regular expressions.  Also, adding quotes around the match pattern
makes no difference.

Thanks.

Attachment: grepbug-cli.txt
Description: Text document

Attachment: grepbug-onlymatching.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]