sstephenson/rbenv — Issue #121: RBENV_VERSION is sometimes ignored
Author: bronson
Created: 2011-10-15 18:17:57+00:00
State: open

This shows that RBENV_VERSION works when executed from Perl but not from Ruby. In this example, global version is set to 1.9.2p290.

$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$ perl -e 'system("RBENV_VERSION=system ruby -e \"puts RUBY_VERSION\"")'
1.8.7
$ ruby -e 'system("RBENV_VERSION=system ruby -e \"puts RUBY_VERSION\"")'
1.9.2

RBENV_VERSION should always work, shouldn't it?