should not declare IFS in toplevel

This commit is contained in:
Yamashita Yuu 2013-06-21 19:37:28 +09:00
parent 745bceac22
commit 1a6eb80bcd

View file

@ -10,13 +10,13 @@ set -e
if [ "$1" = "--bare" ]; then if [ "$1" = "--bare" ]; then
hit_prefix="" hit_prefix=""
miss_prefix="" miss_prefix=""
IFS=: current_versions=() current_versions=()
version_origin="" version_origin=""
include_system="" include_system=""
else else
hit_prefix="* " hit_prefix="* "
miss_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))" version_origin=" (set by $(pyenv-version-origin))"
include_system="1" include_system="1"
fi fi