[MacRuby] #846: Can't load the file when the file and the directory of the same name exist in load-path.
#846: Can't load the file when the file and the directory of the same name exist in load-path. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby $ cat test.rb %w[a a/foo b].each {|d| Dir.mkdir(d)} open("b/foo", "w") {|f| f.puts "$ok = :ok"} $:.replace(%w[a b]) begin load "foo" p $ok rescue => e p e end # finalize File.delete("b/foo") %w[a/foo a b].each {|d| Dir.rmdir(d)} }}} Result of Ruby 1.9.1: {{{ $ ruby test.rb :ok }}} Result of MacRuby Trunk: {{{ $ macruby test.rb #<Errno::EISDIR: Is a directory - read() failed> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/846> MacRuby <http://macruby.org/>
#846: Can't load the file when the file and the directory of the same name exist in load-path. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.7 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.7 Comment: Should be fixed in r4430. -- Ticket URL: <http://www.macruby.org/trac/ticket/846#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby