Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backtick on windows does set the wrong $LOAD_PATH #3484

Open
mkristian opened this issue Nov 21, 2015 · 2 comments
Open

backtick on windows does set the wrong $LOAD_PATH #3484

mkristian opened this issue Nov 21, 2015 · 2 comments

Comments

@mkristian
Copy link
Member

test.rb:

Dir.chdir('test') do
  p cmd = "#{Gem.ruby} -e 'p $LOAD_PATH'"
  p `#{cmd}`
end

make sure the 'test' directory exists and execute

$ bin/jruby test.rb
"/Users/cmeier/projects/active/jruby17/bin/jruby -e 'p $LOAD_PATH'"
"[\"/Users/cmeier/projects/active/jruby17/lib/ruby/1.9/site_ruby\", \"/Users/cmeier/projects/active/jruby17/lib/ruby/shared\", \"/Users/cmeier/projects/active/jruby17/lib/ruby/1.9\"]\n"

on *nix and on windows:

Y:\>bin\jruby test.rb
io/console not supported; tty will not be manipulated
"Y:/bin/jruby.exe -e 'p $LOAD_PATH'"
"[\"Y:/test/lib/ruby/1.9/site_ruby\", \"Y:/test/lib/ruby/shared\", \"Y:/test/lib/ruby/1.9\"]\n"

it looks like the default load-path is relative and not absolute as in the *nix case.

@mkristian
Copy link
Member Author

it only fails if jruby gets installed in root of a directory or drive letter

@enebo
Copy link
Member

enebo commented Nov 23, 2015

Accidentally referenced this issue by mistake. This is still broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants