GNU bug report logs - #51235
resolve old FIXME in PCRE implementation to allow more than 1 expression

Previous Next

Package: grep;

Reported by: Carlo Arenas <carenas <at> gmail.com>

Date: Sat, 16 Oct 2021 07:29:01 UTC

Severity: normal

Tags: moreinfo

Full log


Message #14 received at 51235 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Carlo Arenas <carenas <at> gmail.com>
Cc: 51235 <at> debbugs.gnu.org
Subject: Re: bug#51235: resolve old FIXME in PCRE implementation to allow more
 than 1 expression
Date: Sat, 16 Oct 2021 09:46:37 -0700
On 10/16/21 1:58 AM, Carlo Arenas wrote:
> without the patch, the error isn't correct either:
> 
> $ grep -P '[
>> a]'
> grep: the -P option only supports a single pattern

I don't offhand see what's wrong with the diagnostic, as the PATTERNS 
operand is documented to be one that "contains one or more patterns 
separated by newlines".


> doing the one that compiles
> every line independently and that will catch that problem wouldn't be
> that difficult, but I would rather do it as a follow up, and is
> definitely going to be bigger.

Yes, that sounds better. Please keep the followup in this thread. Also, 
I hope you'd be willing to assign copyright to the FSF as I assume these 
changes will be nontrivial. I will send you paperwork info about that 
via separate mail offlist.




This bug report was last modified 3 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.