X-Recipient: archive-cygwin@delorie.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.post@talk.nabble.com>	<BANLkTinh5zkcBPHF=R0w4jNBsT8TzpFBxQ@mail.gmail.com>	<31370896.post@talk.nabble.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@x-ray.at>
To: cygwin@cygwin.com
Cc: Marc Girod <marc.girod@gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

