bug-findutils
[Top][All Lists]
Advanced

[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:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

URL:
  <http://savannah.gnu.org/bugs/?20803>

                 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

    _______________________________________________________

Details:

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
.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20803>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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