Merge pull request #1504 from kpschoedel/ksh-versions

Support ksh versions
This commit is contained in:
Mislav Marohnić 2023-06-21 12:06:55 +02:00 committed by GitHub
commit 3112172081
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,12 @@ if [ -z "$print" ]; then
zsh ) zsh )
profile='~/.zshrc' profile='~/.zshrc'
;; ;;
ksh ) ksh | ksh93 | mksh )
# There are two implementations of Korn shell: AT&T (ksh93) and Mir (mksh).
# Systems may have them installed under those names, or as ksh, so those
# are recognized here. The obsolete ksh88 (subsumed by ksh93) and pdksh
# (subsumed by mksh) are not included, since they are unlikely to still
# be in use as interactive shells anywhere.
profile='~/.profile' profile='~/.profile'
;; ;;
fish ) fish )
@ -144,7 +149,7 @@ function rbenv
end end
EOS EOS
;; ;;
ksh ) ksh | ksh93 | mksh )
cat <<EOS cat <<EOS
function rbenv { function rbenv {
typeset command typeset command