X-Spam-Check-By: sourceware.org Date: Thu, 02 Nov 2006 14:31:20 -0500 To: cygwin AT cygwin DOT com Subject: find 4.3.0 + 4.3.1: find -path '*/.*' -prune excludes too many files X-Sybari-Space: 00000000 00000000 00000000 00000000 From: "Howard Mak" Content-Type: text/plain; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: User-Agent: Opera Mail/9.02 (Win32) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/