From: "Eugene Rosenzweig" <eugenius@dingoblue.net.au>
To: "Timothy Canham" <Timothy.Canham@jpl.nasa.gov>, <cygwin@cygwin.com>
Subject: Re: Perl reports different cwd() value
Date: Fri, 01 Mar 2002 20:47:00 -0000 [thread overview]
Message-ID: <06b801c1c1a5$74e90f40$0300a8c0@bluebox> (raw)
In-Reply-To: <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/
prev parent reply other threads:[~2002-03-02 4:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-01 13:36 Timothy Canham
2002-03-01 19:46 ` Michael A Chase
2002-03-01 20:47 ` Eugene Rosenzweig [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='06b801c1c1a5$74e90f40$0300a8c0@bluebox' \
--to=eugenius@dingoblue.net.au \
--cc=Timothy.Canham@jpl.nasa.gov \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).