瀏覽代碼

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

Loading…
取消
儲存