public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Perl reports different cwd() value
@ 2002-03-01 13:36 Timothy Canham
  2002-03-01 19:46 ` Michael A Chase
  2002-03-01 20:47 ` Eugene Rosenzweig
  0 siblings, 2 replies; 3+ messages in thread
From: Timothy Canham @ 2002-03-01 13:36 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Perl reports different cwd() value
  2002-03-01 13:36 Perl reports different cwd() value Timothy Canham
@ 2002-03-01 19:46 ` Michael A Chase
  2002-03-01 20:47 ` Eugene Rosenzweig
  1 sibling, 0 replies; 3+ messages in thread
From: Michael A Chase @ 2002-03-01 19:46 UTC (permalink / raw)
  To: Timothy Canham, cygwin

----- Original Message -----
From: "Timothy Canham" <Timothy.Canham@jpl.nasa.gov>
To: <cygwin@cygwin.com>
Sent: Friday, March 01, 2002 13:38
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

That _is_ the POSIX path for c:/temp unless you've created a mount point for
c:/ or c:/temp/.  If you want c:/temp, you'd need to use a non-Cygwin build
of Perl; in which case this would be off topic..
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.


--
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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Perl reports different cwd() value
  2002-03-01 13:36 Perl reports different cwd() value Timothy Canham
  2002-03-01 19:46 ` Michael A Chase
@ 2002-03-01 20:47 ` Eugene Rosenzweig
  1 sibling, 0 replies; 3+ messages in thread
From: Eugene Rosenzweig @ 2002-03-01 20:47 UTC (permalink / raw)
  To: Timothy Canham, cygwin

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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-02  4:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-01 13:36 Perl reports different cwd() value Timothy Canham
2002-03-01 19:46 ` Michael A Chase
2002-03-01 20:47 ` Eugene Rosenzweig

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).