bug-grep
[Top][All Lists]
Advanced

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

bug#33249: [PATCH] grep: grouping of patterns including back reference


From: Paul Eggert
Subject: bug#33249: [PATCH] grep: grouping of patterns including back reference
Date: Sat, 3 Nov 2018 08:29:39 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

Norihiro Tanaka wrote:
By this change, each fragment is divided into
groups by whether the fragment includes back reference in a pattern or
not. a frgment which includes back reference constitutes group, and all
frgments which include back reference also constitute a group.

Surely this is not sufficient. An invocation of grep like this:

grep -E '(a
b)'

should be an error, but with the proposed patch won't it be equivalent to "grep -E '(a|b)'" since the pattern has no back-references?





reply via email to

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