|
|
@ -116,12 +116,12 @@ path_without() { |
|
|
|
local path=":${PATH}:" |
|
|
|
for exe; do |
|
|
|
local found alt util |
|
|
|
for found in $(PATH="$path" which -a "$exe"); do |
|
|
|
for found in $(PATH="$path" type -aP "$exe"); do |
|
|
|
found="${found%/*}" |
|
|
|
if [ "$found" != "${PYENV_ROOT}/shims" ]; then |
|
|
|
alt="${PYENV_TEST_DIR}/$(echo "${found#/}" | tr '/' '-')" |
|
|
|
mkdir -p "$alt" |
|
|
|
for util in bash head cut readlink greadlink which; do |
|
|
|
for util in bash head cut readlink greadlink; do |
|
|
|
if [ -x "${found}/$util" ]; then |
|
|
|
ln -s "${found}/$util" "${alt}/$util" |
|
|
|
fi |
|
|
|