mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
replace tr
by shell's IFS
This commit is contained in:
parent
e89ae3a4a9
commit
4174749b24
1 changed files with 1 additions and 2 deletions
|
@ -3,8 +3,7 @@ set -e
|
|||
[ -n "$PYENV_DEBUG" ] && set -x
|
||||
|
||||
if [ -n "$PYENV_VERSION" ]; then
|
||||
# IFS=: versions=($(${PYENV_VERSION})) # this does not work on zsh without `setopt shwordsplit`.
|
||||
versions=($(echo "${PYENV_VERSION}" | tr ":" " "))
|
||||
IFS=: versions=($(echo "${PYENV_VERSION}"))
|
||||
else
|
||||
PYENV_VERSION_FILE="$(pyenv-version-file)"
|
||||
IFS=: versions=($(pyenv-version-file-read "$PYENV_VERSION_FILE" || true))
|
||||
|
|
Loading…
Reference in a new issue