pyenv/libexec
Mislav Marohnić db143bb654 rbenv exec: avoid mutating PATH
Enables shelling out from a ruby process started with rbenv to a ruby
process with a different RBENV_VERSION. Fixes #121

This removes the workaround created for #15 and solves `ruby -S` support
by setting RUBYPATH. PATH is never changed.

To illustrate how RUBYPATH changes in various configurations:

    PATH=~/bin:~/.rbenv/shims:/usr/bin:/bin
    RBENV_VERSION=1.8 ruby -S rake
    #=> executes ~/.rbenv/versions/1.8/bin/rake
    #=> RUBYPATH=~/bin:~/.rbenv/versions/1.8/bin:/usr/bin:/bin

    RBENV_VERSION=2.0 ruby -S rake
    #=> executes ~/.rbenv/versions/2.0/bin/rake
    #=> RUBYPATH=~/bin:~/.rbenv/versions/2.0/bin:/usr/bin:/bin

    RBENV_VERSION=system ruby -S rake
    #=> executes /usr/bin/rake
    #=> RUBYPATH=~/bin:/rbenv_shims_were_here:/usr/bin:/bin

    RBENV_VERSION=1.8 ruby -S rake
    #=> executes ~/.rbenv/versions/1.8/bin/rake
    #=> RUBYPATH=~/bin:~/.rbenv/versions/1.8/bin:/usr/bin:/bin
2013-06-20 20:41:22 +02:00
..
rbenv bail out early if readlink is not available 2013-06-07 19:16:38 +02:00
rbenv---version tests galore 2013-03-07 15:07:32 -05:00
rbenv-commands fix iterating through paths that have spaces in them 2013-04-01 01:04:19 +02:00
rbenv-completions improve detection of completion support for commands 2013-04-01 16:39:51 +02:00
rbenv-exec rbenv exec: avoid mutating PATH 2013-06-20 20:41:22 +02:00
rbenv-global Improve syntax for inline documentation and allow for multi-line usage 2012-12-29 12:06:20 -06:00
rbenv-help Fix incorrect formatting of rbenv-help output under MAWK 2013-01-05 16:55:19 +00:00
rbenv-hooks bail out early if readlink is not available 2013-06-07 19:16:38 +02:00
rbenv-init bail out early if readlink is not available 2013-06-07 19:16:38 +02:00
rbenv-local add tests for version commands 2013-04-08 23:16:35 +02:00
rbenv-prefix Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-rehash rbenv exec: avoid mutating PATH 2013-06-20 20:41:22 +02:00
rbenv-root Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-sh-rehash Suppress shell warnings when hashing is disabled by set +h 2013-01-25 11:50:37 -06:00
rbenv-sh-shell "per-project" -> "application-specific" 2013-01-03 10:00:10 -06:00
rbenv-shims tests galore 2013-03-07 15:07:32 -05:00
rbenv-version Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-file Prefer .ruby-version to .rbenv-version for reading local versions 2012-12-30 18:35:20 -06:00
rbenv-version-file-read Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-file-write Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-name Tweak the ruby- prefix warning 2012-12-31 09:58:10 -06:00
rbenv-version-origin Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-versions Accept "ruby-" version prefix but print a warning to stderr 2012-12-30 19:01:30 -06:00
rbenv-whence Usage consistency 2012-12-30 16:00:53 -06:00
rbenv-which restore original IFS for hooks 2013-04-16 14:01:43 +02:00