From: nobu.nokada@... Date: 2004-01-10T18:47:27+09:00 Subject: Re: Ruby 1.8.0 bugs on Dir Hi, At Sat, 10 Jan 2004 18:11:38 +0900, GGarramuno wrote: > BUG 1 (MS only) > ===== > $ bug.fb C: > will instead open and list the current directory on ruby mswin32, instead of C: "The current directory on ruby mswin32" is in C:? So it just works as like as "dir C:" does. What do you expect? > BUG 2 > ===== > Dir.open(ARGV[0]) { |i| > print i, " " > } > > will print: > C:\ruby\learningGGA>bug2.rb C: > C: > # > > on any of my two ruby versions. This is inconsistent with what ri docs say it > should do. $ ri Dir.open -------------------------------------------------------------- Dir::open Dir.open( string ) => aDir Dir.open( string ) {| aDir | block } => anObject ------------------------------------------------------------------------ With no block, +open+ is a synonym for +Dir::new+. If a block is present, it is passed _aDir_ as a parameter. The directory is closed at the end of the block, and +Dir::open+ returns the value of the block. What and how inconsistent do you feel? -- Nobu Nakada