Пожалуйста, включите JavaScript.
Главная
Обзор
Помощь
Вход
isprogram
/
pyenv
зеркало из
https://github.com/pyenv/pyenv.git
Следить
1
В избранное
0
Форкнуть
0
Код
Задачи
0
Projects
0
Релизы
181
Вики
Активность
Просмотр исходного кода
rbenv-init: do not use basename for $shell
This can be done using bash directly.
pull/487/head^2
Daniel Hahler
9 лет назад
Родитель
5b9e4f0584
Сommit
4ea7d0849b
1 измененных файлов
:
2 добавлений
и
1 удалений
Разделённый вид
Опции Diff
Показать статистику
Скачать Patch файл
Скачать Diff файл
+2
-1
libexec/rbenv-init
+ 2
- 1
libexec/rbenv-init
Просмотреть файл
@ -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%/*}/.."
Редактирование
Предпросмотр
Загрузка…
Отмена
Сохранить