From: "Berger, Daniel" Date: 2006-03-21T07:27:02+09:00 Subject: Re: File.split on windows box appends a '.' to directory name > -----Original Message----- > From: Jim Weirich [mailto:jim@weirichhouse.org] > Sent: Monday, March 20, 2006 3:21 PM > To: ruby-core@ruby-lang.org > Subject: File.split on windows box appends a '.' to directory name > > > I'm exploring file path manipulation and discovered that on a > windows box: > > >> File.split("C:a/b") > => ["C:a.", "b"] > > I would expect ["C:a", "b"], which is indeed what I get when > running on > Linux. > > Is this a bug, or am I missing something? Works for me: irb(main):001:0> File.split("C:a/b") => ["C:a", "b"] irb(main):002:0> VERSION => "1.8.4" What version of Ruby? Dan