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

 
 

bug #20803: find -prune should always be true

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

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
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

 

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

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 02 Dec 2007 01:47:32 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.11
    Tue 27 Nov 2007 08:51:07 PM UTCjayStatusIn Progress=>Fixed
    Sun 25 Nov 2007 12:37:04 PM UTCjayStatusConfirmed=>In Progress
      Assigned toNone=>jay

    Back to the top


    Powered by Savane 3.1-cleanup1