bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: find (and friends) bug?


From: Tom Lord
Subject: Re: find (and friends) bug?
Date: Mon, 4 Mar 2002 03:40:30 -0800 (PST)

       > me:
       > Also, am I alone in thinking that accurately implementing Posix
       > regexps is a desirable goal for the GNU tools?

       > eggert:
       No.  It's just that nobody has gotten around to doing it.  


I don't think that's historically accurate.

GNU regex uses an NFA algorithm.  To give is Posix semantics is to
make it too slow.  Many years ago, this was briefly done, then undone.
Maybe it never propogated to all packages that include regex.c, but it
was done in Emacs, for example.

That's part of why I started Rx.  For many years, Rx was inaccurate
(didn't really implement Posix).  The version currently distributed by
the FSF is still inaccurate (more "process problems" there).  The
latest versions (at www.regexps.com) seem to be the most accurate
implementation of Posix regexps available and to have decent
performance.  For those packages that combine dfa.c from grep with
regex.c, Rx is an interesting alternative: it provides a dfa, when
applicable, via a posix regex interface (plus extensions, if you want
them).  Of course, if Posix has recently changed out from under Rx,
well then, there's a waste of a few years....

-t



reply via email to

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