1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 13:53:53 -05:00

Ignore shell builtins and functions when looking up commands in PATH

Weirdly, `command -v true` returns `true` instead of `/usr/bin/true`.
This commit is contained in:
Mislav Marohnić
2022-10-07 16:34:38 +02:00
parent 6b1cc34610
commit 43e30ef815
5 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ root="${root%/*}"
rbenv_in_path=true
if [ -n "$RBENV_ORIG_PATH" ]; then
PATH="$RBENV_ORIG_PATH" command -v rbenv >/dev/null || rbenv_in_path=""
PATH="$RBENV_ORIG_PATH" type -P rbenv >/dev/null || rbenv_in_path=""
fi
if [ -z "$print" ]; then