X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,TW_YG X-Spam-Check-By: sourceware.org Message-ID: <4DA454E9.6060208@dronecode.org.uk> Date: Tue, 12 Apr 2011 14:34:33 +0100 From: Jon TURNEY User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Windows tools can access /usr/share but not /usr/lib References: <31350629 DOT post AT talk DOT nabble DOT com> <31370896 DOT post AT talk DOT nabble DOT com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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