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
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
rbenv-rehash rbenv exec: avoid mutating PATH 2013-06-20 20:41:22 +02:00
rbenv-root
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
rbenv-version-file
rbenv-version-file-read
rbenv-version-file-write
rbenv-version-name
rbenv-version-origin
rbenv-versions
rbenv-whence
rbenv-which restore original IFS for hooks 2013-04-16 14:01:43 +02:00