bugfindutils - Bugs: bug #4298, find -regex is either not working...

 
 

bug #4298: find -regex is either not working properly or not documented properly

Submitter:  Andreas Metzler <ametzler>
Submitted:  Sun 13 Jul 2003 11:00:57 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Fixed Release:  4.2.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 03 Jan 2004 10:34:58 PM UTC, comment #1: 

find(1) uses Gnulib's default re_match() implementation which provides "basic" regular expressions.  I have updated the manual page in the CVS code to reflect this, and sent an email to bug-findutils asking if we should follow POSIX regexps instead.  If the answer is yes, I will raise a separate bug.

James Youngman <jay>
Group administrator
Sun 13 Jul 2003 11:00:57 AM UTC, original submission:  


Version: 4.1.20

Quoting from http://bugs.debian.org/162838 submitted by Thomas Themel:
------------------------------------------
The man page for find does not document the syntax of regular expressions supported by -regex. Since -regex is not part of the POSIX syntax, it seems to be non-obvious which regex syntax is supported.

The man page lists the info page as a reference, and the info description of -regex references a node '(emacs) Regexps'. The corresponding info node describes a pretty advanced Regexp syntax which is not implemented by find.

An example:

#v+
bash-2.05b$ ls -l
-rw-------    1 themel   themel          0 Sep 30 12:57 aaaa
-rw-------    1 themel   themel          0 Sep 30 12:57 a{4}
bash-2.05b$ find . -regex '\./a\{4\}'
./a{4}
bash-2.05b$ find . -regex '\./a{4}'
./a{4}
#v-
------------------------------------------

I've verified that this still applies to 4.1.20.
             cu andreas

Andreas Metzler <ametzler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-10-16 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.0
2004-01-03 jay StatusNone Fixed

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code