This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Calling cygpath from find exec?
- From: "Nellis, Kenneth" <Kenneth dot Nellis at xerox dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Mon, 23 Nov 2015 21:14:18 +0000
- Subject: RE: Calling cygpath from find exec?
- Authentication-results: sourceware.org; auth=none
- References: <56537B03 dot 4050204 at codespunk dot com>
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