# Case sensitive glob?

**URL:** <https://rubytalk.org/t/case-sensitive-glob/5880>\
**Category:** ruby-talk\
**Created:** [6 May 2003 12:05 UTC](https://rubytalk.org/t/case-sensitive-glob/5880 "2003-05-06T12:05:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shannon\_Fang](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Shannon\_Fang](https://rubytalk.org/u/Shannon_Fang)\
**Post date:** [6 May 2003 12:05 UTC](https://rubytalk.org/t/case-sensitive-glob/5880/1 "2003-05-06T12:05:46Z")

</div>

Hi,

I found that Ruby dir glob (Dir["_.EXT"]) is case sensitive even on  
Windows machine. This means, "_.EXT" will NOT match “file.ext”. However  
if I use File.open, it is not.

I wonder why the Dir matching is case sensitive whilt the operating  
system’s convention is not…

Regards,  
Shannon
