[1.9] Kernel.require loads the file in current dir --------------------------------------------------
Key: JRUBY-5526 URL: http://jira.codehaus.org/browse/JRUBY-5526 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6RC2 Environment: jruby 1.6.0.RC2 (ruby 1.9.2 patchlevel 136) (2011-02-20 e785c9c) (Java HotSpot(TM) 64-Bit Server VM 1.7.0-ea) [linux-amd64-java] Reporter: Hiroshi Nakamura 1.9 should prohibit it. Strangely, there's no "." in $LOAD_PATH. {noformat} 0% ls 0% echo 'p :loaded' > target.rb 0% ruby -e 'require "target"' /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require': cannot load such file -- target (LoadError) from /usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from -e:1:in `<main>' 1% jruby --1.9 -e 'require "target"' :loaded 0% jruby --1.9 -e 'p $LOAD_PATH' ["/home/nahi/git/jruby/lib/ruby/site_ruby/1.9", "/home/nahi/git/jruby/lib/ruby/site_ruby/shared", "/home/nahi/git/jruby/lib/ruby/site_ruby/1.8", "/home/nahi/git/jruby/lib/ruby/1.9"] {noformat} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email