bugfindutils - Bugs: bug #20803, find -prune should always be true

 
 

bug #20803: find -prune should always be true

Submitter:  Eric Blake <ericb>
Submitted:  Fri 17 Aug 2007 05:55:32 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.3.8 Fixed Release:  4.3.11
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Aug 2007 05:55:32 PM UTC, original submission:  

POSIX requires that -prune shall always evaluate as true.  However, GNU find currently evaluates it as false if -depth is in effect.

Contrast this example between Solaris and GNU:

$ mkdir tmp
$ cd tmp
$ mkdir a
$ touch a/f
$ find . -depth -name a -prune -o -print
./a/f
./a
.
$ /usr/xpg4/bin/find . -depth -name a -prune -o -print
./a/f
.

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

 

Carbon-Copy List
  • -email is unavailable- added by jay (Updated the item)
  • -email is unavailable- added by ericb (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-02 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.11
    2007-11-27 jay StatusIn Progress Fixed
    2007-11-25 jay StatusConfirmed In Progress
        Assigned toNone jay

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code