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
241
Wiki
Trabalho
Ver a proveniência
put up a note why `version-file-read` is tricky
pull/360/head^2
Mislav Marohnić
há 13 anos
ascendente
99551dd1ec
cometimento
21391c8d2f
1 ficheiros alterados
com
2 adições
e
2 eliminações
Visualização em 2 colunas
Opções das diferenças
Mostrar estatísticas
Descarregar ficheiro patch
Descarregar ficheiro diff
+2
-2
libexec/rbenv-version-file-read
+ 2
- 2
libexec/rbenv-version-file-read
Ver ficheiro
@ -5,8 +5,8 @@ set -e
VERSION_FILE="$1"
if [ -e "$VERSION_FILE" ]; then
# Read
and print
the first non-whitespace word from the specified
#
version file
.
# Read the first non-whitespace word from the specified
version file.
#
Be careful not to load it whole in case there's something crazy in it
.
version=""
while read -a words; do
word="${words[0]}"
Escrever
Pré-visualizar
Carregando…
Cancelar
Guardar