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/

Reply via email to