소스 검색

use `typeset` instead of `local` in rbenv() function

This is to insure portability to ksh.

Fixes #205, references #209
pull/360/head^2
Mislav Marohnić 11 년 전
부모
커밋
3060578e3b
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      libexec/rbenv-init

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

@ -86,7 +86,8 @@ commands=(`rbenv-commands --sh`)
IFS="|"
cat <<EOS
rbenv() {
local command="\$1"
typeset command
command="\$1"
if [ "\$#" -gt 0 ]; then
shift
fi

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