mirror of
https://github.com/pyenv/pyenv.git
synced 2025-02-03 13:11:03 +00:00
d0779fc8fb
The literal tilde in a PATH entry (e.g. `~/.rbenv/shims`) doesn't seem to be supported by system `which` utility, but *does* seem to be supported by `command -v` (used in `rbenv-which`) and `type -p`. Therefore, we must strip away `~/.rbenv/shims` from PATH when looking up executables for system Ruby, lest we risk infinite loop. We do so by substituting any occurence of `~` in PATH with the value of `HOME`. |
||
---|---|---|
.. | ||
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 |