Issue #6685 has been updated by john_firebaugh (John Firebaugh).


Hmm, according to http://www.ruby-forum.com/topic/153846 this is intended behavior.
----------------------------------------
Bug #6685: duplicate results in Dir[]
https://bugs.ruby-lang.org/issues/6685#change-27701

Author: john_firebaugh (John Firebaugh)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]


$ mkdir a
$ touch a/b.rb
$ irb
>> Dir['a{,/**}/*.rb']
=> ["a/b.rb", "a/b.rb"]

I expected ["a/b.rb"].


-- 
http://bugs.ruby-lang.org/