use typeset instead of local in rbenv() function

This is to insure portability to ksh.

Fixes #205, references #209
This commit is contained in:
Mislav Marohnić 2012-12-13 06:01:26 +01:00
parent 7fe9231e64
commit 3060578e3b

View file

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