1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 13:33:45 -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

@@ -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