Indeed.
$ ./miniruby -e "require 'find'; p Find.find('.') { break 42 }"
nil
$ ruby1.9 -e "require 'find'; p Find.find('.') { break 42 }"
42
Can you file a ticket?
Thanks,
Laurent
On May 25, 2011, at 1:23 PM, Shannon Love wrote:
> Greetings,
>
> If I run the following under the system ruby 1.8
Greetings,
If I run the following under the system ruby 1.8.7:
require 'find'
starting_directory="/Users/developer/Desktop/Top"
file_name_I_want_to_find="target_file.txt"
path=Find.find(starting_directory) {|p| break p if
p.include?(file_name_I_want_to_find) }
puts "path = #{path}"
... I get t