bugfindutils - Bugs: bug #36960, No warning when regextype not in...

 
 

bug #36960: No warning when regextype not in beginning of expression

Submitted by:  marko asplund <marko_asplund>
Submitted on:  Thu 26 Jul 2012 07:12:53 AM UTC  
 
Category: documentationSeverity: 2 - Minor
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Open/Closed: Closed
Release: 4.4.2Fixed Release: 4.5.17

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 24 Dec 2015 04:11:13 PM UTC, comment #2:

I've improved the documentation in commit 3de8c4f24a268e0dcf191425a0187efc6a4b3eef

James Youngman <jay>
Project AdministratorIn charge of this item.
Thu 26 Jul 2012 07:39:16 AM UTC, comment #1:

I think the documentation needs to be fixed. This construct for example should not produce a warning:

find . -regex '\./smp\{1,\}.*' -regextype grep -regex '[xQ]'

James Youngman <jay>
Project AdministratorIn charge of this item.
Thu 26 Jul 2012 07:12:53 AM UTC, original submission:

the find man page says:

OPTIONS
All options always return true. Except for -daystart, -follow and -regextype, the options affect all tests,
including tests specified before the option. This is because the options are processed when the command line is
parsed, while the tests don't do anything until files are examined. The -daystart, -follow and -regextype
options are different in this respect, and have an effect only on tests which appear later in the command line.
Therefore, for clarity, it is best to place them at the beginning of the expression. A warning is issued if you
don't do this.

when i run the following command there's no warning message:

find . -regex '\./smp\{1,\}.*' -regextype grep

marko asplund <marko_asplund>

 

(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

 

Carbon-Copy List
  • -unavailable- added by jay (Posted a comment)
  • -unavailable- added by marko_asplund (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Dec 2015 05:38:21 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.5.17
    Thu 24 Dec 2015 04:11:13 PM UTCjayStatusNone=>Fixed
      Assigned toNone=>jay
    Thu 26 Jul 2012 07:39:16 AM UTCjayCategoryfind=>documentation
      Severity3 - Normal=>2 - Minor

    Back to the top


    Powered by Savane 3.1-cleanup