bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: marko asplund
Subject: [bug #36960] No warning when regextype not in beginning of expression
Date: Thu, 26 Jul 2012 07:12:54 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2

URL:
  <http://savannah.gnu.org/bugs/?36960>

                 Summary: No warning when regextype not in beginning of
expression
                 Project: findutils
            Submitted by: marko_asplund
            Submitted on: Thu 26 Jul 2012 07:12:53 AM GMT
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.2
           Fixed Release: None

    _______________________________________________________

Details:

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






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]