1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 07:13:53 -05:00

Prevent $command from leaking outside of function

This commit is contained in:
Andrew Marshall
2012-02-04 18:03:39 -05:00
parent e899f1d31c
commit 9c43fa9161

View File

@@ -86,7 +86,7 @@ commands=(`rbenv commands --sh`)
IFS="|"
cat <<EOS
rbenv() {
command="\$1"
local command="\$1"
if [ "\$#" -gt 0 ]; then
shift
fi