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]

find -execdir executes in wrong dir


I just upgraded to version 1.7.7-1 and the following find command is
broken (which used to work correctly in a recent 1.7x version):

C:\cygwin\bin\find . -name file.txt -type f -execdir pwd ';'

Apparently, if there are say 10 matching file.txt files, -execdir
executes the command in the first dir over and over. However, the
following use of find works correctly:

C:\cygwin\bin\find . -name file.txt -type f -execdir pwd '{}' +


Peter
-
www.pdanford.com

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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