bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep --perl-regexp and empty match


From: Stepan Kasal
Subject: Re: grep --perl-regexp and empty match
Date: Mon, 7 Jul 2003 16:22:24 +0200
User-agent: Mutt/1.2.5.1i

Hello,

On Fri, Jul 04, 2003 at 05:15:59PM +0300, Jori Mantysalo wrote:
> On Fri, 4 Jul 2003, Stepan Kasal wrote:
> > To the original problem:
> > the bug is that grep -o doesn't print empty matches.  If it were fixed, then
> >
> >     echo abc | grep -o 'X*'
> >
> > would output four empty lines.
> 
> But why grep prints nothing after it at once see empty match? See:
>  echo 'abbbbc abbbc ac abbc abc' | grep -o -P '(?<=a)b*(?=c)'

that's a more serious bug.  Thanks for the info.

Stepan Kasal




reply via email to

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