Support ksh versions

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`.
This commit is contained in:
Kevin Schoedel 2023-05-11 12:23:34 -04:00
parent a632465cf4
commit e390b228c8

View File

@ -62,7 +62,7 @@ if [ -z "$print" ]; then
zsh ) zsh )
profile='~/.zshrc' profile='~/.zshrc'
;; ;;
ksh ) ksh | ksh93 | ksh88 | pdksh | mksh )
profile='~/.profile' profile='~/.profile'
;; ;;
fish ) fish )
@ -144,7 +144,7 @@ function rbenv
end end
EOS EOS
;; ;;
ksh ) ksh | ksh93 | ksh88 | pdksh | mksh )
cat <<EOS cat <<EOS
function rbenv { function rbenv {
typeset command typeset command