From: Intransition Date: 2011-07-08T12:40:11+09:00 Subject: Re: Dir.glob and File.fnmatch don't seeing eye to eye On Jul 7, 11:29 pm, coolesting wrote: > Hi, can you explain to me what is the use a glob against the file system , > or use the same glob against an Array of file paths , for example ? Sure, I have configurable selection using a glob. On one hand I use the glob to select files from current project, then for a history I use the glob to select files from SCM (git) commits listings. Here's the program: http://github.com.rubyworks/locat. Code's pretty rough at this point but functional, I'll spend tomorrow refactoring. To work around the problem I just settled on using #fnmatch in both cases (not as versatile and a bit slower, but ok)