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
1 changed files with 1 additions and 1 deletions

View File

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