mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-12 13:33:45 -05:00
Merge pull request #189 from amarshall/master
Prevent $command from leaking outside of function
This commit is contained in:
@@ -86,7 +86,7 @@ commands=(`rbenv commands --sh`)
|
|||||||
IFS="|"
|
IFS="|"
|
||||||
cat <<EOS
|
cat <<EOS
|
||||||
rbenv() {
|
rbenv() {
|
||||||
command="\$1"
|
local command="\$1"
|
||||||
if [ "\$#" -gt 0 ]; then
|
if [ "\$#" -gt 0 ]; then
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user