From 699cd8c2031561447e20b0163217ed3f9ae185a1 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 21 Sep 2011 13:05:08 -0500 Subject: [PATCH] Quote script path and remove unnecessary semicolon --- libexec/rbenv-exec | 2 +- libexec/rbenv-rehash | 2 +- libexec/rbenv-which | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/rbenv-exec b/libexec/rbenv-exec index d940a7a3..892e17a9 100755 --- a/libexec/rbenv-exec +++ b/libexec/rbenv-exec @@ -17,7 +17,7 @@ RBENV_COMMAND_PATH="$(rbenv-which "$RBENV_COMMAND")" RBENV_BIN_PATH="${RBENV_COMMAND_PATH%/*}" for script in $(rbenv-plugin-scripts exec); do - source $script; + source "$script" done shift 1 diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index a11b64bd..ca83c54b 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -71,5 +71,5 @@ make_shims ../versions/*/bin/* cd "$CUR_PATH" for script in $(rbenv-plugin-scripts rehash); do - source $script; + source "$script" done diff --git a/libexec/rbenv-which b/libexec/rbenv-which index a47badd3..d22a91eb 100755 --- a/libexec/rbenv-which +++ b/libexec/rbenv-which @@ -53,7 +53,7 @@ else fi for script in $(rbenv-plugin-scripts which); do - source $script; + source "$script" done if [ -x "$RBENV_COMMAND_PATH" ]; then