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

 
 

bug #15194: bad parse on ( option )

Submitter:  Eric Blake <ericb>
Submitted:  Mon 12 Dec 2005 01:58:50 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Eric Blake Open/Closed:  Closed
Release:  4.2.27 Fixed Release:  4.3.1
* Mandatory Fields

Add a New Comment Rich Markup
   

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

4.3.1 has now been released, fixing this problem.

James Youngman <jay>
Group administrator
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>
Group administrator
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>
Group 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>
Group administrator

 

(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
2006-08-07 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.3.1
2005-12-20 jay StatusNone Fixed
    Assigned toNone jay

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code