bugfindutils - Bugs: bug #15194, bad parse on ( option )

 
 

bug #15194: bad parse on ( option )

Submitted by:  Eric Blake <ericb>
Submitted on:  Mon 12 Dec 2005 01:58:50 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Eric BlakeOpen/Closed: Closed
Release: 4.2.27Fixed Release: 4.3.1

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 07 Aug 2006 09:41:32 AM UTC, comment #3:

4.3.1 has now been released, fixing this problem.

James Youngman <jay>
Project AdministratorIn charge of this item.
Tue 20 Dec 2005 07:26:54 AM UTC, comment #2:

Fixed in findutils-4.3.1, but not in 4.2.x.

James Youngman <jay>
Project AdministratorIn charge of this item.
Mon 12 Dec 2005 02:03:22 PM UTC, comment #1:

The warning message about not specifying -depth first should quote the first non-option argument '(', otherwise the message is somewhat difficult to read.

Eric Blake <ericb>
Project Administrator
Mon 12 Dec 2005 01:58:50 PM UTC, original submission:

This should succeed (albeit with the warning) rather than fail, since -depth is a valid expression. Likewise to all the other expression options, if \( and \) are separated by any valid expression, even if it is not a test, find should correctly parse the command line.

Buggy:
$ find \( -depth \)
find/find: warning: you have specified the -depth option after a non-option argument (, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

find/find: invalid expression; you have too many ')'

Expected:
$ find -depth \( -true \)
./Entries
./Entries.Log
./Repository
./Root
./Template
.
$ find -depth \( -depth \)
find/find: warning: you have specified the -depth option after a non-option argument (, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

./Entries
./Entries.Log
./Repository
./Root
./Template
.

Eric Blake <ericb>
Project Administrator

 

(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
Mon 07 Aug 2006 09:41:32 AM UTCjayOpen/ClosedOpen=>Closed
  Fixed ReleaseNone=>4.3.1
Tue 20 Dec 2005 07:26:54 AM UTCjayStatusNone=>Fixed
  Assigned toNone=>jay

Back to the top


Powered by Savane 3.1-cleanup1