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

 
 

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

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Sun 13 Jul 2003 11:00:57 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: NoneFixed Release: 4.2.0

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 16 Oct 2004 06:17:54 PM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.0
Sat 03 Jan 2004 10:34:58 PM UTCjayStatusNone=>Fixed

Back to the top


Powered by Savane 3.1-cleanup1