mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-02 19:31:07 -05:00
76e64ff2ea
Homebrew places the rbenv executable in a location such as `/usr/local/bin/rbenv`, which is in PATH. However, that is a symlink to `/usr/local/Cellar/rbenv/<VERSION>/bin/rbenv`, which is itself a symlink to `/usr/local/Cellar/rbenv/<VERSION>/libexec/rbenv`. Upon executing, rbenv will add its own directory to PATH so that it can easily invoke its subcommands. When generating shims during `rbenv rehash`, rbenv will try to put the absolute path to itself inside each shim so that shims would work even if rbenv itself isn't in PATH. Under Homebrew, rbenv's directory will be the versioned directory in Homebrew's Cellar. However, due to Homebrew's auto-cleanup functionality, shims generated this way will be broken after upgrading rbenv because of the versioned Cellar path. This changes how rbenv discovers itself in PATH: it will look at the original PATH, not in the one modified by rbenv, with the intention of excluding results under rbenv's own `libexec/`. If rbenv wasn't found in PATH, return the absolute path to rbenv's own `bin/rbenv`. |
||
---|---|---|
.. | ||
rbenv | ||
rbenv---version | ||
rbenv-commands | ||
rbenv-completions | ||
rbenv-exec | ||
rbenv-global | ||
rbenv-help | ||
rbenv-hooks | ||
rbenv-init | ||
rbenv-local | ||
rbenv-prefix | ||
rbenv-rehash | ||
rbenv-root | ||
rbenv-sh-rehash | ||
rbenv-sh-shell | ||
rbenv-shims | ||
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 |