From 4174749b2448e07bf2e613eaaf0026446e43f1b9 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Fri, 7 Sep 2012 20:10:10 +0900 Subject: [PATCH] replace `tr` by shell's IFS --- libexec/pyenv-version-name | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libexec/pyenv-version-name b/libexec/pyenv-version-name index 763a2094..52bbd958 100755 --- a/libexec/pyenv-version-name +++ b/libexec/pyenv-version-name @@ -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))