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]

Calling cygpath from find exec?


Is there a reason why these produce different results?

find . -exec cygpath -wa {} \;
find . -exec echo $(cygpath -wa {}) \;

I have to do this which is much slower:
find . -exec bash -c 'echo $(cygpath -wa {})' \;

Or this:
find . | while read a; do echo $(cygpath -wa $a); done


Matt D.

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