From 7e83e07cf31b68f0173cb108d687506979130289 Mon Sep 17 00:00:00 2001 From: Michael Grubb Date: Thu, 15 Dec 2011 14:54:38 -0600 Subject: [PATCH] Made ksh portability changes Added specific message for ksh in identifying the proper shell initialization file. Changed rbenv functiond definition to be more portable. Shell functions should be defined by using the function command or using the parenthesis grammar, but using both is not portable: rbenv() {... -or- function rbenv { ... --- libexec/rbenv-init | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libexec/rbenv-init b/libexec/rbenv-init index a83cee40..d16065f7 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -41,6 +41,9 @@ if [ -z "$print" ]; then zsh ) profile='~/.zshrc' ;; + ksh ) + profile='~/.profile' + ;; * ) profile='your profile' ;; @@ -71,7 +74,7 @@ echo 'rbenv rehash 2>/dev/null' commands=(`rbenv commands --sh`) IFS="|" cat <