Permalink
Browse files

Prevent $command from leaking outside of function

  • Loading branch information...
amarshall committed Feb 4, 2012
1 parent e899f1d commit 9c43fa916148008f6761781d6497c52bb36c0c46
Showing with 1 addition and 1 deletion.
  1. +1 −1 libexec/rbenv-init
View
@@ -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 9c43fa9

Please sign in to comment.