GNU bug report logs -
#33249
[PATCH] grep: grouping of patterns including back reference
Previous Next
Reported by: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Date: Sat, 3 Nov 2018 11:43:01 UTC
Severity: normal
Tags: patch
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Sat, 3 Nov 2018 21:02:19 -0700
Paul Eggert <eggert <at> cs.ucla.edu> wrote:
> Norihiro Tanaka wrote:
> > Even the pattern has no back-references, compilation by regex run for
> > each line. So Syntax errors will be detected as even your present.
>
> OK, but then I'm afraid I don't understand the motivation for the patch. Perhaps if you gave a self-contained example? The examples in the original bug report are incomplete because they're missing the pattern file; when I tried the first one I observed this:
>
> $ yes 00000000000000000000000000000000000000000x | head -10 >in
> $ time -p env LC_ALL=C grep -f pat in
> grep: pat: No such file or directory
> real 0.00
> user 0.00
> sys 0.00
Sorry, It's missing. The pattern for all cases is as following.
$ seq -f '%040g' 0 9999 | sed '1s/$/\\(0\\)\\1/' >pat
Norihiro
This bug report was last modified 5 years and 236 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.