mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-12 05:23:47 -05:00
replace tr by shell's IFS
This commit is contained in:
@@ -3,8 +3,7 @@ set -e
|
|||||||
[ -n "$PYENV_DEBUG" ] && set -x
|
[ -n "$PYENV_DEBUG" ] && set -x
|
||||||
|
|
||||||
if [ -n "$PYENV_VERSION" ]; then
|
if [ -n "$PYENV_VERSION" ]; then
|
||||||
# IFS=: versions=($(${PYENV_VERSION})) # this does not work on zsh without `setopt shwordsplit`.
|
IFS=: versions=($(echo "${PYENV_VERSION}"))
|
||||||
versions=($(echo "${PYENV_VERSION}" | tr ":" " "))
|
|
||||||
else
|
else
|
||||||
PYENV_VERSION_FILE="$(pyenv-version-file)"
|
PYENV_VERSION_FILE="$(pyenv-version-file)"
|
||||||
IFS=: versions=($(pyenv-version-file-read "$PYENV_VERSION_FILE" || true))
|
IFS=: versions=($(pyenv-version-file-read "$PYENV_VERSION_FILE" || true))
|
||||||
|
|||||||
Reference in New Issue
Block a user