bugfindutils - Bugs: bug #65297, -regexp incompatible statements...

 
 

bug #65297: -regexp incompatible statements concerning default

Submitter:  None
Submitted:  Mon 12 Feb 2024 07:40:12 PM UTC
   
 
Category:  documentation Severity:  4 - Important
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.9.0
Fixed Release:  4.10.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 May 2024 08:31:26 AM UTC, comment #2: 

Fixed in git.

James Youngman <jay>
Group administrator
Fri 17 May 2024 08:19:35 AM UTC, comment #1: 

The default is indeed emacs:


$ find h* -regextype posix-basic -regex '^hello.w.*' -print -quit
hello?world
$ find h* -regextype emacs -regex '^hello.w.*' -print -quit
$ find h*  -regex '^hello.w.*' -print -quit
$ ls hello*
'hello'$'\n''world'


The default is set in set_option_defaults:


  p->regex_options = RE_SYNTAX_EMACS;




James Youngman <jay>
Group administrator
Mon 12 Feb 2024 07:40:12 PM UTC, original submission:  

"There are several varieties of regular expressions; by default this test uses POSIX basic regular expressions, but this can be changed with the option ‘-regextype’. "

https://git.savannah.gnu.org/cgit/findutils.git/tree/doc/find.texi#n581

The above is incompatible with

‘emacs’

    Regular expressions compatible with GNU Emacs; this is also the default behaviour if this option is not used.

https://git.savannah.gnu.org/cgit/findutils.git/tree/doc/find.texi#n597

which one is correct, I do not know :)

Anonymous

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by berny (Updated the item)
  • -email is unavailable- added by jay (Posted a comment)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-05-27 berny Open/ClosedOpen Closed
        ReleaseNone 4.9.0
        Fixed ReleaseNone 4.10.0
    2024-05-17 jay StatusNone Fixed
    2024-05-17 jay Severity3 - Normal 4 - Important
        Assigned toNone jay

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code