1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 05:23:47 -05:00

fix iterating through paths that have spaces in them

Fixes #344, #196
This commit is contained in:
Mislav Marohnić
2013-02-24 14:52:50 +01:00
parent 382db59cd0
commit baf7656d2f
8 changed files with 51 additions and 6 deletions

View File

@@ -63,7 +63,8 @@ else
RBENV_COMMAND_PATH="${RBENV_ROOT}/versions/${RBENV_VERSION}/bin/${RBENV_COMMAND}"
fi
for script in $(rbenv-hooks which); do
IFS=$'\n' scripts=(`rbenv-hooks which`)
for script in "${scripts[@]}"; do
source "$script"
done