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/