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

Merge pull request #1448 from rbenv/command-to-type-P

Ignore shell builtins and functions when looking up commands in PATH
This commit is contained in:
Mislav Marohnić
2022-10-09 14:49:32 +02:00
committed by GitHub
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() {