bug-findutils
[Top][All Lists]
Advanced

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

[bug #14243] Basic regular expressions does not work


From: Bob Proulx
Subject: [bug #14243] Basic regular expressions does not work
Date: Sun, 21 Aug 2005 15:12:29 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8) Gecko/20050814 Firefox/1.0.4 (Debian package 1.0.4-2sarge2)

Follow-up Comment #3, bug #14243 (project findutils):

Note that GNU grep uses an GNU regular expression engine which is compliant
with POSIX but extents it.  In particular \{ and \} are extensions.  Normally
those would not be valid escape sequences. Those invalid basic regular
expression sequences are used to enable {n,m} processing of extended regular
expressions.  By using GNU grep with \{3\) you are really escaping into
extended regular expressions and apparently not realizing it.

See this recent discussion of the regular expression type used in find.  It
has previously been Emacs RE-like and not POSIX RE-like.

http://lists.gnu.org/archive/html/bug-findutils/2005-06/msg00151.html

And also see:

http://savannah.gnu.org/bugs/index.php?func=detailitem&item_id=4298

Bob


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14243>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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