Hi,

In message "Re: [Ruby 1.8.4] Bug report for File.expand_path"
    on Fri, 3 Mar 2006 12:47:12 +0100 (CET), "Jerome Zago" <jerome-zago / agt-the-walker.net> writes:

|ruby -e "p ['w:', 'w:/'].collect { |path| File.expand_path(path) }"
|
|Expected output:
|["w:/", "w:/"]
|
|Actual output:
|["w:/ocs/1.02.3/ocs", "w:/"]
|
|Environment:
|- current dir: w:\ocs\1.02.3\ocs
|- ruby 1.8.4 (2005-12-24) [i386-mswin32] from CMD or Cygwin
|- Windows XP Pro 2002 SP1
|
|More details or testing upon request.
|Sorry if this should be sent to someone else (I got this from ruby 1.8.4's
|README).
|Thanks for your work !

I'm afraid it's intended behavior on the DOS derived operating
systems.  On those systems, each drive has independent current
directory, and "W:" should mean "the current directory on the
specified drive".  If you have any questions on this behavior feel
free to ask me.  I will send your mail forward to the Win32
maintainers.

							matz.