1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14: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

@@ -23,7 +23,7 @@ fi
command_path() {
local command="$1"
command -v rbenv-"$command" || command -v rbenv-sh-"$command" || true
type -P rbenv-"$command" rbenv-sh-"$command" | head -n1
}
extract_initial_comment_block() {