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
Priority:  5 - 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

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

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

    Votes

    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.

     

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

    History

    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.16-2753.
    Corresponding source code