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: Windows tools can access /usr/share but not /usr/lib


On 12/04/2011 13:36, Reini Urban wrote:
> 2011/4/11 Marc Girod:
>> Andy Koppe wrote:
>>> You should use the cygpath utility to translate Cygwin paths to
>>> Windows paths, rather than just changing slashes and prefixing with
>>> C:\cygwin.
>> OK. Done.
>> Now, my script will fork this for every argument...
>> Can I spawn a 'cygpath -w', put it in the background, and get it to read
>> stdin
>> and write to stdout through pipes?

A brief glance at the man page should discover 'cygpath -w -f-'

> cygwin perl has a fast API for path and mountpoint translation.
> 
> $ perldoc perlcygwin
> => Prebuilt methods

But this is probably a better solution :-)

--
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


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