bug-findutils
[Top][All Lists]
Advanced

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

Re: [bug #58384] incorect documentaion for -regex


From: Gilles Crèvecœur
Subject: Re: [bug #58384] incorect documentaion for -regex
Date: Thu, 21 May 2020 21:31:54 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, May 20, 2020 at 06:36:10AM -0400, Geoff Clare wrote:
> Follow-up Comment #2, bug #58384 (project findutils):
> 
> Seems the documentation is wrong:
> 
> $ find . -type f -regex '.\{3,\}' | wc -l                       
> 0
> $ find . -regextype posix-basic -type f -regex '.\{3,\}' | wc -l
> 16
> 
> Clearly the default is not posix-basic.

Indeed, the documentaion says the default regexps are compatible with
emacs regexp.  Even there is a link to emacs regexp node. But emacs
regexps understand the syntax `\{3,\}'.  That's the point I mean by
"incorrect documentaion".
So, I used 
    $ find . -type f -regex-type posix-extended -regex '.{3,}'
instead.  This latter command works perfectly.

So, the emacs regexp style of find is not compatible with emacs regexp!
Sadly, that led me to waste time to investigate why my regexp did not
work.



reply via email to

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