Skip to content

Instantly share code, notes, and snippets.

@deepak
Created June 13, 2013 12:31
Show Gist options
  • Select an option

  • Save deepak/5773313 to your computer and use it in GitHub Desktop.

Select an option

Save deepak/5773313 to your computer and use it in GitHub Desktop.
spawning a ruby process with a new RBENV_VERSION does not change ruby version
puts "default"
spawn({}, 'ruby --version')
sleep 2
puts "ruby2"
spawn({"RBENV_VERSION" => "2.0.0-p195"}, 'rbenv rehash; ruby --version') #~> still shown as 1.9 not 2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment