From: nobu.nokada@... Date: 2003-02-07T11:31:50+09:00 Subject: Re: case-sensitivity and Dir Hi, At Thu, 6 Feb 2003 19:08:40 +0900, WATANABE Hirofumi wrote: > > Doesn't do anything for readability but > > Dir["*.[xX][bB][xX]"] > > will at least get you the files that you want. > > % touch foo.XbX > % ruby -v > ruby 1.8.0 (2003-02-06) [i386-linux] > % ruby -e 'p Dir.glob("*.xbx", File::FNM_CASEFOLD)' > ["foo.XbX"] I suspect that the flag should be defaulted for Dir.[] on case-insensitive systems, i.e., DOSISH, classic MacOS, and maybe VMS. -- Nobu Nakada