mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-16 07:13:53 -05:00
use typeset instead of local in rbenv() function
This is to insure portability to ksh. Fixes #205, references #209
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user