This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Perl reports different cwd() value
- 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>
- Date: Sat, 2 Mar 2002 15:48:10 +1100
- Subject: Re: Perl reports different cwd() value
- References: <3C7FF4B8.4DA55@jpl.nasa.gov>
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.Canham@jpl.nasa.gov>
To: <cygwin@cygwin.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.Canham@jpl.nasa.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/