public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Calling cygpath from find exec?
@ 2015-11-23 21:14 Matt D.
  2015-11-23 21:16 ` Nellis, Kenneth
  2015-11-23 22:31 ` Eric Blake
  0 siblings, 2 replies; 5+ messages in thread
From: Matt D. @ 2015-11-23 21:14 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-01 20:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-23 21:14 Calling cygpath from find exec? Matt D.
2015-11-23 21:16 ` Nellis, Kenneth
2015-11-23 22:31 ` Eric Blake
2015-12-01 20:43   ` Duncan Roe
2015-12-01 20:52     ` Eric Blake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).