This is the mail archive of the
cygwin
mailing list for the Cygwin project.
find -execdir command executed in wrong directory
- From: David Rothenberger <daveroth at acm dot org>
- To: cygwin <cygwin at cygwin dot com>
- Date: Tue, 05 Dec 2006 20:12:13 -0800
- Subject: find -execdir command executed in wrong directory
- Reply-to: cygwin at cygwin dot com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
"find -execdir" seems to be executing the command in the wrong
directory. If the file is in /tmp/a/b/c, the command is executed with
the current directory /tmp/a/b instead of /tmp/a/b/c. oldfind does the
right thing.
% cygcheck -cd findutils
Cygwin Package Information
Package Version
findutils 4.3.2-1
% mkdir -p /tmp/findtest/a/b/{c,d}
% touch /tmp/findtest/a/b/{c,d}/somefile
% find /tmp/findtest/a -type f -print -execdir pwd {} +
/tmp/findtest/a/b/c/somefile
pwd: ignoring non-option arguments
/tmp/findtest/a/b
/tmp/findtest/a/b/d/somefile
pwd: ignoring non-option arguments
/tmp/findtest/a/b
% oldfind /tmp/findtest/a -type f -print -execdir pwd {} +
/tmp/findtest/a/b/c/somefile
pwd: ignoring non-option arguments
/tmp/findtest/a/b/c
/tmp/findtest/a/b/d/somefile
pwd: ignoring non-option arguments
/tmp/findtest/a/b/d
- --
David Rothenberger spammer? -> spam@daveroth.dyndns.org
GPG/PGP: 0x92D68FD8, DB7C 5146 1AB0 483A 9D27 DFBA FBB9 E328 92D6 8FD8
Pauca sed matura.
[Few but excellent.]
-- Gauss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iQEVAwUBRXZDHb3xOW8bc2dhAQhkqgf/UUCmMbEz5MPEDY/ZOOO2jQsTrzlODHkL
32XEAVFPPmCGK/c5B4jzppATi4rhmybiVYe8aGY1XrOdZSykhQ7ZVmJiCVEHTYUC
C7tpfv+wB7HHGK6AdPZiIv3x87/HFx8/jWUkRQYrqms2pRZvEyPUkhW5BTQjCFE9
ZmDY/ZTsZ+SapG1jUF61JBUwdEr0bIIyR4hNoblchIEetHaT994HlrMT7l2p8Fil
7rEPK8KqAPq+1tvWnAPRD9JKZt8Gw0WGclUX14uDwzbd1HDyD79y3Tlnkp+TVVbm
2p0f/FSd5/dmmb7EMrX/f8upF8O3zjycnozib9/cnTKaDI00Esa2Kw==
=u8xf
-----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/