Este sítio funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Iniciar sessão
isprogram
/
pyenv
espelho de
https://github.com/pyenv/pyenv.git
Vigiar
1
Marcar como favorito
0
Derivar
0
Código
Questões
0
Projects
0
Lançamentos
181
Wiki
Trabalho
Ver a proveniência
rbenv-init: do not use basename for $shell
This can be done using bash directly.
pull/487/head^2
Daniel Hahler
há 9 anos
ascendente
5b9e4f0584
cometimento
4ea7d0849b
1 ficheiros alterados
com
2 adições
e
1 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+2
-1
libexec/rbenv-init
+ 2
- 1
libexec/rbenv-init
Ver ficheiro
@ -25,7 +25,8 @@ if [ -z "$shell" ]; then
shell="$(ps c -p "$PPID" -o 'ucomm=' 2>/dev/null || true)"
shell="${shell##-}"
shell="${shell%% *}"
shell="$(basename "${shell:-$SHELL}")"
shell="${shell:-$SHELL}"
shell="${shell##*/}"
fi
root="${0%/*}/.."
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar