This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Perl reports different cwd() value


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]