Perl reports different cwd() value
Eugene Rosenzweig
eugenius@dingoblue.net.au
Fri Mar 1 20:47:00 GMT 2002
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/
More information about the Cygwin
mailing list