This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: findutils-4.3.2-3


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Vincent Legoll on 3/9/2007 7:34 AM:
> 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.

Coupled with the fact that my attempted patch for -execdir is not quite
right when the current directory is messed with concurrently with the
traversal.  Again, until I can fix it (or more hopefully, until the
upstream maintainer can properly fix -execdir), the workaround is to use
oldfind, or wait for me to release a new findutils package.

> [trying with trivial exemple on linux]
> 
> OK it seems to work here.

Because a stock findutils on linux does not have my patch that attempts to
work around the -execdir bug.

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

Won't matter.  -depth is global (ie, no matter where it appears in your
expression, it takes affect as though it had appeared first).

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

Unfortunately, it's not in the manual.  And you DID read hard enough, as
evidenced by the fact that you found posts mentioning that oldfind works
in this situation when find does not.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF8XQV84KuGfSFAYARAq4VAKCqNntx01tbZC9xp9+IfnSy9acZowCeKdwH
rBaYCrzHMjFtdNQv/Kl3wA8=
=CNgs
-----END PGP SIGNATURE-----

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]