Skip to content
Browse files

Merge pull request #189 from amarshall/master

Prevent $command from leaking outside of function
  • Loading branch information...
2 parents e899f1d + 9c43fa9 commit a49b07975ce4595005dad3cf209e9ccce8757c57 @sstephenson sstephenson committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 libexec/rbenv-init
View
2 libexec/rbenv-init
@@ -86,7 +86,7 @@ commands=(`rbenv commands --sh`)
IFS="|"
cat <<EOS
rbenv() {
- command="\$1"
+ local command="\$1"
if [ "\$#" -gt 0 ]; then
shift
fi

0 comments on commit a49b079

Please sign in to comment.
Something went wrong with that request. Please try again.