mirror of
https://github.com/pyenv/pyenv.git
synced 2025-12-08 23:41:26 +09: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:
parent
7fe9231e64
commit
3060578e3b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user