Update of bug #31933 (project findutils):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

Your start point was ".".   Hence all paths considered by find will be of the
form "./" followed by something else.   In other words they will match the
regular expression './.*'.  However, the regular expression you specified was 
'.(css|png|gif)$' and that only matches filenames which have 'c', 'p' or 'g'
in the second position.  Since all filenames considered by find in this
example have '/' in that position, no file names match the specified regex.  
It's negated, so the negated expression is always true and hence find will
find all files.

I think you probably just misunderstood what -regex matches on:


$ PAGER="grep -A2 -e '-regex '" man find
       -regex pattern
              File  name  matches regular expression pattern.  This is a
match
              on the whole path, not a search.  For example, to match  a 
file


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31933>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to