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

 
 

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

Submitted by:  Andreas Metzler <ametzler>
Submitted on:  Thu 02 Dec 2004 05:22:04 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Open/Closed: Closed
Release: 4.2.8Fixed Release: 4.2.9

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 05 Dec 2004 05:21:34 PM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.2.9
Fri 03 Dec 2004 05:57:04 PM UTCjayStatusNone=>Fixed
  Assigned toNone=>jay

Back to the top


Powered by Savane 3.1-cleanup1