> -----Original Message----- > From: Hal E. Fulton [mailto:hal9000 / hypermetrics.com] > Sent: Friday, January 12, 2001 10:44 PM > To: ruby-talk ML > Subject: [ruby-talk:9238] Dir.pwd on Win > > > Hi guys... > > I'm interested in what people think of this behavior... > (1.6.1 on Win98) > > Dir.chdir ("\\") > puts Dir.pwd # "/" > > OK, I can live with that one... what about: > > Dir.chdir("C:\\") > puts Dir.pwd # "/cygwin/c" > > Hmm! In a way I understand it, but in a way I'm > unhappy with it. I am *not* using all of cygwin... > just the DLL. The DLL governs this behavior - if don't want to have the full installation - grap the newest core package ``cywin-1.1.7.tar.gz'' from cygin ftp site or one of its mirrors lets say ftp://ftp.sunsite.utk.edu/pub/cygwin/latest/cygwin/ untar gzip (you can use winzip for this) and copy the ``bin'' directory into your ``bin'' ruby directory. You will find utilities called mount and umount. Run mount # tell you current mount table and mount --help # guess what mount -s -t C:\\ /C # or /MyC ... ... Dir.chdir("C:\\") puts Dir.pwd # "/MyC" ... If you replace the ``-t'' switch with ``-b'' you will access all files under /C in binary mode ... Christoph