diff --git a/pyenv.d/install/latest.bash b/pyenv.d/install/latest.bash index f33e365b..6f45a50d 100644 --- a/pyenv.d/install/latest.bash +++ b/pyenv.d/install/latest.bash @@ -1,8 +1,8 @@ DEFINITION_PREFIX="${DEFINITION%%:*}" DEFINITION_TYPE="${DEFINITION_PREFIX%%-*}" # TODO: support non-CPython versions if [[ "${DEFINITION}" != "${DEFINITION_PREFIX}" ]]; then - DEFINITION_CANDIDATES=\ - ($(python-build --definitions | \ + DEFINITION_CANDIDATES=(\ + $(python-build --definitions | \ grep -F "${DEFINITION_PREFIX}" | \ grep "^${DEFINITION_TYPE}" | \ sed -E -e '/-dev$/d' -e '/-src$/d' -e '/(b|rc)[0-9]+$/d' | \