소스 검색

Made ksh portability changes

Added specific message for ksh in identifying the proper shell
initialization file.

Changed rbenv functiond definition to be more portable.
Shell functions should be defined by using the function command or
using the parenthesis grammar, but using both is not portable:

rbenv() {...  -or-
function rbenv { ...
pull/360/head^2
Michael Grubb 14 년 전
부모
커밋
7e83e07cf3
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      libexec/rbenv-init

+ 4
- 1
libexec/rbenv-init 파일 보기

@ -41,6 +41,9 @@ if [ -z "$print" ]; then
zsh )
profile='~/.zshrc'
;;
ksh )
profile='~/.profile'
;;
* )
profile='your profile'
;;
@ -71,7 +74,7 @@ echo 'rbenv rehash 2>/dev/null'
commands=(`rbenv commands --sh`)
IFS="|"
cat <<EOS
function rbenv() {
function rbenv {
command="\$1"
if [ "\$#" -gt 0 ]; then
shift

불러오는 중...
취소
저장