Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "Timothy Canham" , 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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" To: 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/