Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
isprogram
/
pyenv
miroir de
https://github.com/pyenv/pyenv.git
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Projects
0
Versions
241
Wiki
Activité
Parcourir la source
Only shift if an argument is passed.
Fixes
#78
.
pull/360/head^2
Sam Stephenson
il y a 15 ans
Parent
1ba2ce0cb6
révision
fb6eee26d4
1 fichiers modifiés
avec
8 ajouts
et
5 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+8
-5
libexec/rbenv-init
+ 8
- 5
libexec/rbenv-init
Voir le fichier
@ -70,14 +70,17 @@ echo 'rbenv rehash 2>/dev/null'
commands=(`rbenv commands --sh`)
IFS="|"
cat <<EOS
function rbenv () {
command="\$1";
shift;
function rbenv() {
command="\$1"
if [ "\$#" -gt 0 ]; then
shift
fi
case "\$command" in
${commands[*]})
eval \`rbenv "sh-\$command" "\$@"\`;;
*)
command rbenv "\$command" "\$@";;
esac
;
}
;
esac
}
EOS
Écrire
Aperçu
Chargement…
Annuler
Enregistrer