From: mathew Date: 2011-02-04T12:38:51+09:00 Subject: [ruby-core:35084] Re: [Ruby 1.9-Bug#4343] Dir.glob does match files without extension On Sun, Jan 30, 2011 at 23:07, Jeremy Bopp wrote: > On 01/30/2011 06:30 PM, mathew wrote: >> On Sat, Jan 29, 2011 at 11:49, Jeremy Bopp wrote: >>> Where possible, Ruby scripts should see *Ruby* as the platform, not >>> Linux, not OSX, and not Windows. >> >> If that's true, are Ruby filenames case-sensitive or not? And are they >> case-preserving or not? > > The handling of file names is dependent on the underlying filesystem. > That means that file names are case-insensitive and case-preserving by > default on FAT and NTFS (used by Windows) and on HFSX (used by default > for OSX, I think). So if "it depends on the OS and filesystem" is the right answer for case sensitivity, why isn't it the right answer for how file globs work? mathew --