JRuby

RUBYLIB environment variable ignored

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: JRuby 0.9.1, JRuby 0.9.2, JRuby 0.9.8
  • Fix Version/s: JRuby 1.0.0RC1
  • Component/s: Miscellaneous
  • Labels:
    None
  • Environment:
    Linux
  • Number of attachments :
    1

Description

Any directories set in environment variable RUBYLIB will be added to the load path $: by Ruby. JRuby does not seem to do this however. For example:

export RUBYLIB=/some/path

echo 'puts $:' | ruby
=>
/some/path
/usr/local/lib/site_ruby/1.8
/usr/local/lib/site_ruby/1.8/i486-linux
....

but...

echo 'puts $:' | jruby
=>
/usr/local/lib/site_ruby/1.8
/usr/local/lib/site_ruby/1.8/i486-linux
....

Activity

Hide
Charles Oliver Nutter added a comment -

This isn't major, but it should be fixed for 1.0. It shouldn't be a hard one for someone else to tackle, either.

Show
Charles Oliver Nutter added a comment - This isn't major, but it should be fixed for 1.0. It shouldn't be a hard one for someone else to tackle, either.
Hide
Koichiro Ohba added a comment -

I fixed the bug. Please check the patch.

Show
Koichiro Ohba added a comment - I fixed the bug. Please check the patch.
Hide
Thomas E Enebo added a comment -

Applied patch by Koichiro Ohba. Fixed in commit 3622.

Show
Thomas E Enebo added a comment - Applied patch by Koichiro Ohba. Fixed in commit 3622.
Hide
Charles Oliver Nutter added a comment -

Closing for 1.0RC1

Show
Charles Oliver Nutter added a comment - Closing for 1.0RC1

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: