> This is what I get from command line:
>
> C:\>ruby -e'puts Dir.pwd'
> /cygdrive/c
>
> C:\>ruby -e'puts `cmd.exe /c cd`'
> C:\
>
> Shouldn't these agree?  Also I have no directory \cygdrive.

cygwin is a compatibility layer that allows the unix-ish stuff of Ruby to
run on Windows. So cygwin 'unix-izes' your drives by prefixing them with
/cygdrive/, then the drive letter without a colon.

Your second example, of course, actually runs cmd.exe, so of course you get
a native result.

There are other ways to currently do Ruby on Windows
(http://www.rubycentral.com/book/win32.html) and there have also been recent
discussions for more native Windows support
(http://www.rubygarden.org/ruby?FutureWindows).

This bit you've hit upon is a bit awkward unfortunately, but I've been using
Ruby on Windows only for some time now and it works great.

Chris