mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Fix quoting in rbenv function
This commit is contained in:
parent
76929320c8
commit
1ba2ce0cb6
1 changed files with 4 additions and 4 deletions
|
@ -71,13 +71,13 @@ commands=(`rbenv commands --sh`)
|
|||
IFS="|"
|
||||
cat <<EOS
|
||||
function rbenv () {
|
||||
command=\$1;
|
||||
command="\$1";
|
||||
shift;
|
||||
case \$command in
|
||||
case "\$command" in
|
||||
${commands[*]})
|
||||
eval \`rbenv sh-\$command \$@\`;;
|
||||
eval \`rbenv "sh-\$command" "\$@"\`;;
|
||||
*)
|
||||
command rbenv \$command \$@;;
|
||||
command rbenv "\$command" "\$@";;
|
||||
esac;
|
||||
};
|
||||
EOS
|
||||
|
|
Loading…
Reference in a new issue