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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] > 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/