From: Brian Candler Date: 2003-04-05T18:39:37+09:00 Subject: Strangeness in Find.find I was just looking at lib/ruby/1.8/find.rb and I am stumped by the marked line: def find(*paths) # :yield: path paths.collect!{|d| d.dup} # << ?! while file = paths.shift ... etc For each element of the 'paths' array, it is duplicating that entry, then collecting those duplicates into a new array, and then immediately throwing away that array! It also exists in 1.6 except the variable is called 'path' not 'paths' Does this line have a useful side-effect that I can't see? Or was it intended to be paths = paths.collect{|d| d.dup} Regards, Brian.