From 1a6eb80bcdc3a9746291291d7fe82f4eda36abe3 Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Fri, 21 Jun 2013 19:37:28 +0900 Subject: [PATCH] should not declare IFS in toplevel --- libexec/pyenv-versions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/pyenv-versions b/libexec/pyenv-versions index 648a7ed2..9c745a5a 100755 --- a/libexec/pyenv-versions +++ b/libexec/pyenv-versions @@ -10,13 +10,13 @@ set -e if [ "$1" = "--bare" ]; then hit_prefix="" miss_prefix="" - IFS=: current_versions=() + current_versions=() version_origin="" include_system="" else hit_prefix="* " miss_prefix=" " - IFS=: current_versions=($(pyenv-version-name || true)) + current_versions=($(IFS=:; for version in $(pyenv-version-name); do echo "$version"; done || true)) version_origin=" (set by $(pyenv-version-origin))" include_system="1" fi