This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
pyenv
mirror of
https://github.com/pyenv/pyenv.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
181
Wiki
Activity
Browse Source
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 years ago
parent
7fe9231e64
commit
3060578e3b
1 changed files
with
2 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
libexec/rbenv-init
+ 2
- 1
libexec/rbenv-init
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
Write
Preview
Loading…
Cancel
Save