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: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.4.2Fixed Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

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 Administrator
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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Jul 2012 07:39:16 AM UTCjayCategoryfind=>documentation
      Severity3 - Normal=>2 - Minor

    Back to the top


    Powered by Savane 3.1-cleanup