delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <06b801c1c1a5$74e90f40$0300a8c0@bluebox> |
From: | "Eugene Rosenzweig" <eugenius AT dingoblue DOT net DOT au> |
To: | "Timothy Canham" <Timothy DOT Canham AT jpl DOT nasa DOT gov>, <cygwin AT cygwin DOT com> |
References: | <3C7FF4B8 DOT 4DA55 AT jpl DOT nasa DOT gov> |
Subject: | Re: Perl reports different cwd() value |
Date: | Sat, 2 Mar 2002 15:48:10 +1100 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 6.00.2600.0000 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
Not really sure why you want to work around a standard way to express paths but, if you need to, maybe something like this? perl -e 'use Cwd;$path=cwd();print "[",$path,"]\n";$winpath = `cygpath -w $path`;print "[",$winpath,"]\n";$winpath=~ tr/\\/\//;print "[",$winpath,"]\n";' Excuse any bad perl, I am at hello world level with it. ----- Original Message ----- From: "Timothy Canham" <Timothy DOT Canham AT jpl DOT nasa DOT gov> To: <cygwin AT cygwin DOT com> Sent: Saturday, March 02, 2002 8:38 AM Subject: Perl reports different cwd() value > If you are in: > > c:/temp (alternate way to address drives under cygwin) > > and you perform "perl -e "use Cwd; cwd();" " you get: > > /cygdrive/c/temp. > > Any way to work around this? > > Version 1.3.9 > > -- > Timothy K. Canham > Jet Propulsion Laboratory > Pasadena, CA > Timothy DOT Canham AT jpl DOT nasa DOT gov > MDS Flight Software > > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |