bug-coreutils
[Top][All Lists]
Advanced

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

bug#33062: grep matches too lazily when invoked with -zoP and matching b


From: Bernhard Voelker
Subject: bug#33062: grep matches too lazily when invoked with -zoP and matching backreference followed by newline
Date: Wed, 24 Oct 2018 01:16:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

reassign 33062 grep
stop

On 10/16/18 2:55 PM, Johannes Riecken wrote:
> Dear maintainers:
> 
> *Bug summary: *GNU grep 3.0-2 matches too lazily when invoked with -zoP and
> matching backreference followed by newline
> 
> *Steps to reproduce:*
> 
> Create file cases:
> 
> foo
> bar
>   cases:
>     1: foo
>     2: bar
> baz
>   cases:
>     3: baz
> quux
> 
> And run grep -zoP '(\s*)cases:\n(\1.*\n)*' cases
> 
> *Expected output:*
> 
>   cases:
>     1: foo
>     2: bar
>   cases:
>     3: baz
> 
> * Actual output:*
> 
>   cases:
> 
>   cases:
> 
> Best regards,
> 
> Johannes Riecken

Thanks for the report, however, you reached the GNU coreutils mailing list,
while your report is for 'grep'.

I'm therefore reassigning this issue to the GNU 'grep' package.

Have a nice day,
Berny






reply via email to

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