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:  find Severity:  3 - Normal
Item Group:  Wrong result Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Eric Blake Open/Closed:  Closed
Release:  4.3.8 Fixed 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 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

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