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
241
Wiki
Activity
Browse Source
Merge pull request
#179
from johnwilliams/master
rbenv-init arguments should be allowed in any order
pull/360/head^2
Sam Stephenson
14 years ago
parent
5d0a6630b9
f40bc773d2
commit
9ea1f7d53e
1 changed files
with
12 additions
and
9 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+12
-9
libexec/rbenv-init
+ 12
- 9
libexec/rbenv-init
View File
@ -3,16 +3,19 @@ set -e
[ -n "$RBENV_DEBUG" ] && set -x
print=""
if [ "$1" = "-" ]; then
print=1
shift
fi
no_rehash=""
if [ "$1" = "--no-rehash" ]; then
no_rehash=1
shift
fi
for args in "$@"
do
if [ "$args" = "-" ]; then
print=1
shift
fi
if [ "$args" = "--no-rehash" ]; then
no_rehash=1
shift
fi
done
shell="$1"
if [ -z "$shell" ]; then
Write
Preview
Loading…
Cancel
Save