bugfindutils - Bugs: bug #11192, Inconsistent display of...

 
 

bug #11192: Inconsistent display of warningmessage about options and non-options

Submitter:  Andreas Metzler <ametzler>
Submitted:  Thu 02 Dec 2004 05:22:04 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Open/Closed:  Closed
Release:  4.2.8 Fixed Release:  4.2.9
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 05 Dec 2004 05:21:34 PM UTC, comment #3: 

You can download a release of findutils in which this problem is
fixed from ftp://alpha.gnu.org/gnu/findutils.

The releases on alpha.gnu.org are for testing purposes, so please
take the time to download the release and verify that your
problem has been solved.  Once the release has been sufficiently
tested, it can be uploaded to ftp.gnu.org for everybody to use it.

James Youngman <jay>
Group administrator
Fri 03 Dec 2004 05:57:04 PM UTC, comment #2: 

This problem is fixed in the CVS code for findutils.
To resolve your problem, you could either wait for the
next official release of findutils, or check out a copy
of the code from the CVS repository for findutils.

James Youngman <jay>
Group administrator
Thu 02 Dec 2004 05:36:02 PM UTC, comment #1: 

Actually the problem is -xdev, which is not recognized as global option, this might be enough:
-{ARG_TEST,               "xdev",                  parse_xdev}
+{ARG_OPTION,             "xdev",                  parse_xdev}

Andreas Metzler <ametzler>
Thu 02 Dec 2004 05:22:04 PM UTC, original submission:  

Recent releases of find display a warning message if overall options like -maxdepth appear in the middle of the expression, however displaying this warning is inconsistent:

downhill:/etc# find . -xdev -depth -type f -print > /dev/null
find: warning: you have specified the -depth option after a non-option argument -xdev, but options are not positional (-depth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

# but -depth is a non-option.

downhill:/etc# find . -type f -depth -print > /dev/null
find: warning: you have specified the -depth option after a non-option argument -type, but options are not positional (-depth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

#switching the nooptions works:

downhill:/etc# find . -depth -xdev -type f -print > /dev/null

        cu andreas

Andreas Metzler <ametzler>

 

(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

 

CC list is empty

 

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 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-05 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.9
2004-12-03 jay StatusNone Fixed
    Assigned toNone jay

Back to the top

Powered by Savane 3.13-758e.
Corresponding source code