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

 
 

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

Submitter:  marko asplund <marko_asplund>
Submitted:  Thu 26 Jul 2012 07:12:53 AM UTC
   
 
Category:  documentation Severity:  2 - Minor
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.4.2 Fixed Release:  4.5.17
* Mandatory Fields

Add a New Comment Rich Markup
   

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

I've improved the documentation in commit 3de8c4f24a268e0dcf191425a0187efc6a4b3eef

James Youngman <jay>
Group administrator
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>
Group 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 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 jay (Posted a comment)
  • -email is unavailable- added by marko_asplund (Submitted the item)
  •  

    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
    2015-12-24 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.5.17
    2015-12-24 jay StatusNone Fixed
        Assigned toNone jay
    2012-07-26 jay Categoryfind documentation
        Severity3 - Normal 2 - Minor

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code