From: Ian Hobson Date: 2004-01-11T21:56:39+09:00 Subject: Re: Ruby 1.8.0 bugs on Dir In message , GGarramuno writes >Austin Ziegler wrote in message news:<200411 >0165022.739336@PADD>... > >> It does: >> >> C:\home>dir c: >> Volume in drive C is Portable >> >> Directory of C:\home >> >> C:\home>dir c:\ >> Volume in drive C is Portable >> >> Directory of c:\ >> >> -austin > >Err... That can't be, as I never print anything like Volume in my code. >You seem to be running the msdos dir command, perhaps? > >This is what I get with the code posted as bug.rb on windows XP: > You will find that the MS Dir command will also behaves this way. >C:\ruby\learningGGA>bug.rb C: >C: >. .. whichrb.rb CVSROOT dist FOX_tut1.rb copy.png > This is a listing of the CURRENT directory on C: as you asked for. >C:\ruby\learningGGA>bug.rb C:/ >C:/ >MSDOS.SYS AUTOEXEC.BAK pagefile.sys AUTOEXEC.DOS >CONFIG.DOS CONFIG.BAK CONFIG.SYS This is a listing of the root directory on C: as you asked for, It is behaving as it should....(and as msdos dir does). Having change to /program files on my C: drive, and swapped back to D: D:\temp>dir c:\ Volume in drive C has no label. Volume Serial Number is FC35-A3C2 Directory of c:\ 04/12/2003 10:02 642 scl.dat 29/12/2003 12:16 6,314 ZinioInstall.txt 04/11/2003 09:49 Documents and Settings 04/11/2003 09:50 Program Files 06/11/2003 14:49 WINNT 2 File(s) 6,956 bytes 3 Dir(s) 2,117,074,944 bytes free D:\temp>dir c: Volume in drive C has no label. Volume Serial Number is FC35-A3C2 Directory of C:\Program Files 04/11/2003 09:50 . 04/11/2003 09:50 .. 04/11/2003 09:50 Common Files 04/11/2003 10:00 Windows NT big snip for space reasons.... D:\temp>dir c: Regards Ian -- Ian - posting to a Newsgroup. Please remove everything to reply.