From e390b228c8be53ffa6b02bd06cad2189e5105024 Mon Sep 17 00:00:00 2001 From: Kevin Schoedel Date: Thu, 11 May 2023 12:23:34 -0400 Subject: [PATCH] Support ksh versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Korn shell had two major versions: ’88 and ’93. Some systems have ksh installed under the name `ksh93`. A few systems (maybe only Solaris now) also have a `ksh88`. A few others use the `pdksh` (roughly ’88) or `mksh` (roughly ’93) implementations, originated before ksh was open source. As far as the (very minor) use in rbenv is concerned, these are all equivalent. This change accepts all of the above. Tested with `ksh93`, `pdksh`, and `mksh`. --- libexec/rbenv-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/rbenv-init b/libexec/rbenv-init index ff79b3db..e4b487e7 100755 --- a/libexec/rbenv-init +++ b/libexec/rbenv-init @@ -62,7 +62,7 @@ if [ -z "$print" ]; then zsh ) profile='~/.zshrc' ;; - ksh ) + ksh | ksh93 | ksh88 | pdksh | mksh ) profile='~/.profile' ;; fish ) @@ -144,7 +144,7 @@ function rbenv end EOS ;; -ksh ) +ksh | ksh93 | ksh88 | pdksh | mksh ) cat <