support other versions of ksh

This commit is contained in:
Mitch Weaver 2019-07-25 23:40:59 -05:00
parent b886122af9
commit 4120ad4940
1 changed files with 1 additions and 1 deletions

View File

@ -1460,7 +1460,7 @@ get_shell() {
"bash") shell+="${BASH_VERSION/-*}" ;;
"sh" | "ash" | "dash") ;;
"mksh" | "ksh")
*"ksh")
shell+="$("$SHELL" -c "printf %s \"\$KSH_VERSION\"")"
shell="${shell/ * KSH}"
shell="${shell/version}"