1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-12 21:33:54 -05:00

restore original IFS for hooks

This commit is contained in:
Ian Yang
2013-04-16 00:10:56 +08:00
committed by Mislav Marohnić
parent bc1049f5ae
commit 6ca591ab75
3 changed files with 7 additions and 0 deletions

View File

@@ -33,7 +33,9 @@ export RBENV_VERSION
RBENV_COMMAND_PATH="$(rbenv-which "$RBENV_COMMAND")"
RBENV_BIN_PATH="${RBENV_COMMAND_PATH%/*}"
OLDIFS="$IFS"
IFS=$'\n' scripts=(`rbenv-hooks exec`)
IFS="$OLDIFS"
for script in "${scripts[@]}"; do
source "$script"
done