Calling cygpath from find exec?

Matt D. matt@codespunk.com
Mon Nov 23 21:14:00 GMT 2015


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



More information about the Cygwin mailing list