rbenv/libexec
Mislav Marohnić 5ce2fd8a2f
Enable fallback to PATH from rbenv shims
Previously, when someone activated rbenv shim `foo`, rbenv would error out if `RBENV_ROOT/versions/RBENV_VERSION/bin/foo` did not exist.

This change allows `foo` to be additionally looked up in PATH as fallback. This prevents a case where one of the Ruby versions is shadowing a system-wide command of the same name, preventing the use of the global command across all other Ruby versions.

rbenv used to be strict around this, allowing the fallback to avoid ever falling back to system Ruby for invocations like `bundle` if the current Ruby version did not yet install Bundler. The current approach prevents this scenario by explicitly disallowing fallback for the following executables: ruby, rake, gem, bundle, bundler, irb, rdoc, ri.
2022-10-07 16:16:34 +02:00
..
rbenv Test for executables but not functions 2022-09-30 12:29:49 +02:00
rbenv---version rbenv 1.2.0 2021-09-29 20:47:10 +02:00
rbenv-commands
rbenv-completions
rbenv-exec Enable fallback to PATH from rbenv shims 2022-10-07 16:16:34 +02:00
rbenv-global
rbenv-help Test for executables but not functions 2022-09-30 12:29:49 +02:00
rbenv-hooks Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
rbenv-init Use absolute path in rbenv init instructions if needed 2022-09-25 22:32:46 +02:00
rbenv-local
rbenv-prefix rbenv-prefix: do not silence rbenv-which for system version 2018-08-07 01:44:13 +02:00
rbenv-rehash Revert support for user-installed gems (#1443) 2022-10-07 12:56:54 +02:00
rbenv-root
rbenv-sh-rehash
rbenv-sh-shell Make work in set -u (nounset) mode 2020-05-24 09:08:05 +03:00
rbenv-shims
rbenv-version libexec/rbenv-version{,-origin}: move "missing rbenv-version-file detection" logic as per @mislav 2020-01-16 23:15:09 +08:00
rbenv-version-file Fix https://github.com/rbenv/rbenv/issues/1065 2018-02-26 16:49:37 +08:00
rbenv-version-file-read Simplify version file read 2022-03-08 21:10:15 +02:00
rbenv-version-file-write
rbenv-version-name
rbenv-version-origin libexec/rbenv-version{,-origin}: move "missing rbenv-version-file detection" logic as per @mislav 2020-01-16 23:15:09 +08:00
rbenv-versions Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
rbenv-whence
rbenv-which Enable fallback to PATH from rbenv shims 2022-10-07 16:16:34 +02:00