Discussion:
[ast-developers] Renaming pgrep (grep -P) pcregrep as builtin?
Joshuah Hurst
2013-09-15 12:35:18 UTC
Permalink
Could the pgrep (grep -P) utility please be resurrected as pcregrep
(perl compatible regular expression grep) that builtin pcregrep in a
ksh shell works, please? The system's pcregrep is awful slow compared
to AST grep and as builtin matching short strings it would even be
much faster.

Josh
Glenn Fowler
2013-09-16 13:16:12 UTC
Permalink
Post by Joshuah Hurst
Could the pgrep (grep -P) utility please be resurrected as pcregrep
(perl compatible regular expression grep) that builtin pcregrep in a
ksh shell works, please? The system's pcregrep is awful slow compared
to AST grep and as builtin matching short strings it would even be
much faster.
I specifically avoided that because ast does not use the PCRE library
if others don't think this is a problem b_pcregrep can be added to libcmd
Cedric Blancher
2013-09-18 22:18:13 UTC
Permalink
Post by Glenn Fowler
Post by Joshuah Hurst
Could the pgrep (grep -P) utility please be resurrected as pcregrep
(perl compatible regular expression grep) that builtin pcregrep in a
ksh shell works, please? The system's pcregrep is awful slow compared
to AST grep and as builtin matching short strings it would even be
much faster.
I specifically avoided that because ast does not use the PCRE library
if others don't think this is a problem b_pcregrep can be added to libcmd
Couldn't libast use the libpcre library if it is available?

Ced
--
Cedric Blancher
Loading...