mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 06:13:53 -05:00
Merge pull request #1359 from scop/which-a-to-type-aP
Use test -aP instead of which -a in test helper
This commit is contained in:
@@ -114,7 +114,7 @@ path_without() {
|
|||||||
local exe="$1"
|
local exe="$1"
|
||||||
local path=":${PATH}:"
|
local path=":${PATH}:"
|
||||||
local found alt util
|
local found alt util
|
||||||
for found in $(which -a "$exe"); do
|
for found in $(type -aP "$exe"); do
|
||||||
found="${found%/*}"
|
found="${found%/*}"
|
||||||
if [ "$found" != "${RBENV_ROOT}/shims" ]; then
|
if [ "$found" != "${RBENV_ROOT}/shims" ]; then
|
||||||
alt="${RBENV_TEST_DIR}/$(echo "${found#/}" | tr '/' '-')"
|
alt="${RBENV_TEST_DIR}/$(echo "${found#/}" | tr '/' '-')"
|
||||||
|
|||||||
Reference in New Issue
Block a user