This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Calling cygpath from find exec?
- From: "Matt D." <matt at codespunk dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 23 Nov 2015 12:45:55 -0800
- Subject: Calling cygpath from find exec?
- Authentication-results: sourceware.org; auth=none
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