Merge pull request #1291 from MitchWeaver/support_other_kshs

support other versions of ksh
This commit is contained in:
black 2019-07-26 09:16:46 +03:00 committed by GitHub
commit 03de8e721d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}"