Calling cygpath from find exec?
Nellis, Kenneth
Kenneth.Nellis@xerox.com
Mon Nov 23 21:16:00 GMT 2015
From: Matt D.
>
> 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
How about the following?
find . | cygpath -waf-
--Ken Nellis
More information about the Cygwin
mailing list