delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/09/09:34:58

X-Spam-Check-By: sourceware.org
Message-ID: <4727185d0703090634t19820071n581da60a06b9af7@mail.gmail.com>
Date: Fri, 9 Mar 2007 15:34:32 +0100
From: "Vincent Legoll" <vincent DOT legoll AT gmail DOT com>
To: cygwin AT cygwin DOT com, ebb9 AT byu DOT net
Subject: Re: [ANNOUNCEMENT] Updated: findutils-4.3.2-3
In-Reply-To: <4727185d0703090450n26f8b217q9c33e1fa57dea5a6@mail.gmail.com>
MIME-Version: 1.0
References: <4727185d0703090450n26f8b217q9c33e1fa57dea5a6 AT mail DOT gmail DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Note-from-DJ: This may be spam

I digged a bit more into that and found that my problem is related
to the '-exec mv "{}" xxx \;'

when replaced by '-exec ls -lh "{}" \;' there is no problem...

Maybe what I was doing worked only by chance since it has
side-effect on the directory tree that is currently traversed.

Am I completely crasy or is there some other option like maybe
'-prune' that should be used for such cases ?

[trying with trivial exemple on linux]

OK it seems to work here.
maybe too trivial.

[trying on windows cygwin]

So I swapped the -depth with a -prune placed just before or after
the -exec and it does not work.

Oh well maybe I didn't RTFM hard enough...

-- 
Vincent Legoll

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019