Merge pull request #1057 from nero/mksh-nospace-fix

Fix borked version display for mksh
This commit is contained in:
M. Herdiansyah 2018-07-27 10:20:38 +07:00 committed by GitHub
commit 9fe7ec4ccf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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