delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/12/08:37:12

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <31370896.post@talk.nabble.com>
References: <31350629 DOT post AT talk DOT nabble DOT com> <BANLkTinh5zkcBPHF=R0w4jNBsT8TzpFBxQ AT mail DOT gmail DOT com> <31370896 DOT post AT talk DOT nabble DOT com>
Date: Tue, 12 Apr 2011 14:36:50 +0200
Message-ID: <BANLkTikf+0iLJwBzx4eSN+4i3r1ZARxM0g@mail.gmail.com>
Subject: Re: Windows tools can access /usr/share but not /usr/lib
From: Reini Urban <rurban AT x-ray DOT at>
To: cygwin AT cygwin DOT com
Cc: Marc Girod <marc DOT girod AT gmail DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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?

cygwin perl has a fast API for path and mountpoint translation.

$ perldoc perlcygwin
=3D> Prebuilt methods

--=20
Reini Urban
http://phpwiki.org/=A0 =A0 =A0 =A0 =A0=A0 http://murbreak.at/

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019