bug-findutils
[Top][All Lists]
Advanced

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

[bug #44221] Spurious warning about non-option arguments is spurious


From: Andrew McGill
Subject: [bug #44221] Spurious warning about non-option arguments is spurious
Date: Thu, 12 Feb 2015 09:26:50 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0

Follow-up Comment #2, bug #44221 (project findutils):

Indeed, you do need to order options and non-options, but only because of this
spurious warning that is printed when you do not do so.  

It looks like the warning is intended to cater for options which affect tests
after them, namely:

  -follow (deprecated)
  -daystart (didn't know about this, looks interesting)
  -regextype (this also looks interesting)

All the other options are global in scope - they cannot be construed to apply
differently based on their position in the command line. 

The distinction between "options" and "tests" is almost completely artificial.
 "-mindepth" is a test which excludes files below the required depth. 
Everyone knows that "find" lists these files, and rejects them for failing the
test.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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