This is the mail archive of the
cygwin
mailing list for the Cygwin project.
find 4.3.0 + 4.3.1: find -path '*/.*' -prune excludes too many files
- From: "Howard Mak" <hmak at vaultus dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 02 Nov 2006 14:31:20 -0500
- Subject: find 4.3.0 + 4.3.1: find -path '*/.*' -prune excludes too many files
Using "-path '*/.*' -prune" prunes too many files from find output when files to prune actually exists.
Problem occurs in both version 4.3.0 + 4.3.1 of find.
Problem does *not* occur in version 4.2.27.
Is this problem related to the following bug?
http://sourceware.org/ml/cygwin/2006-07/msg00890.html
Subject: find version 4.3.0, -path someNonDir -prune
Date: Fri, 28 Jul 2006 08:33:15 +1000
Thanks for any help!
TO REPRODUCE:
-------------
Run commands
1. mkdir -p d/d2
2. touch d/d2/f
3. find d -path '*/.*' -prune -o -print
Result:
-------
d
d/d2
d/d2/f
4. touch d/.x
5. find d -path '*/.*' -prune -o -print
Result:
-------
d
d/d2
Expected:
---------
d
d/d2
d/d2/f
i.e., d/d2/f is unexpectedly dropped
- Howard
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/