This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Calling cygpath from find exec?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]