diff --git a/libexec/rbenv-exec b/libexec/rbenv-exec index 5bd4e8c5..ca8d7755 100755 --- a/libexec/rbenv-exec +++ b/libexec/rbenv-exec @@ -12,7 +12,7 @@ shopt -s nullglob RBENV_EXEC_PLUGINS=(/etc/rbenv.d/exec/*.bash ${HOME}/.rbenv/rbenv.d/exec/*.bash) shopt -u nullglob -for script in $RBENV_EXEC_PLUGINS; do +for script in ${RBENV_EXEC_PLUGINS[@]}; do source $script done diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index 96305478..c57eab6d 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -23,6 +23,6 @@ shopt -s nullglob RBENV_REHASH_PLUGINS=(/etc/rbenv.d/rehash/*.bash ${HOME}/.rbenv/rbenv.d/rehash/*.bash) shopt -u nullglob -for script in $RBENV_REHASH_PLUGINS; do +for script in ${RBENV_REHASH_PLUGINS[@]}; do source $script done diff --git a/libexec/rbenv-which b/libexec/rbenv-which index 34ea534e..74572f47 100755 --- a/libexec/rbenv-which +++ b/libexec/rbenv-which @@ -8,7 +8,7 @@ shopt -s nullglob RBENV_WHICH_PLUGINS=(/etc/rbenv.d/which/*.bash ${HOME}/.rbenv/rbenv.d/which/*.bash) shopt -u nullglob -for script in $RBENV_WHICH_PLUGINS; do +for script in ${RBENV_WHICH_PLUGINS[@]}; do source $script done