From: ggarramuno@... (GGarramuno) Date: 2004-01-11T03:36:41+09:00 Subject: Re: Ruby 1.8.0 bugs on Dir > >"The current directory on ruby mswin32" is in C:? So it just >works as like as "dir C:" does. > >What do you expect? The command should indeed work as the msdos dir command, listing the contents of the C: drive. Yet, it does not. Passing the String "C:" to it lists not the contents of the C: drive but the contents of the current directory in my mswin32 version of ruby. Only if I pass "C:/" will it list the right directory. The same version of ruby,on cygwin, works as it should, listing the contents of C: when "C:" or "C:/" is passed to it. > What and how inconsistent do you feel? Oops, no inconsistency. My bad. It passes the DIR object to the block. I expected it to be a File object, just as foreach but closing the object after, as that seemed to be much more useful and logical.