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: [EMAIL PROTECTED]
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/