From: Tanaka Akira Date: 2009-02-14T17:45:26+09:00 Subject: [ruby-core:22070] Re: Dir.glob and duplicates? In article <49967EC7.6080105@sun.com>, Charles Oliver Nutter writes: > In the JRuby dupe case it's 'a/**/b/**/e'. It has no braces. So the result should not have dupes. > Either way though, since one would have to filter out dupes when > globbing, specifying that some globs may produce dupes seems like > over-specifying. The usual explanation is that Dir.glob emurates shells. However this doesn't explain why Dir.glob("{foo,bar}") returns [] when echo {foo,bar} prints "foo bar". -- Tanaka Akira