[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #20803] find -prune should always be true

From: Eric Blake
Subject: [bug #20803] find -prune should always be true
Date: Fri, 17 Aug 2007 17:55:33 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/


                 Summary: find -prune should always be true
                 Project: findutils
            Submitted by: ericb
            Submitted on: Friday 08/17/2007 at 11:55
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: Confirmed
                 Privacy: Public
             Assigned to: None
         Originator Name: Eric Blake
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.3.8
           Fixed Release: None



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
$ /usr/xpg4/bin/find . -depth -name a -prune -o -print 


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]