Shell: Cut 'version' from ksh output

This commit is contained in:
Dylan Araps 2016-12-15 21:44:02 +11:00
parent c6c4a47cf5
commit d1cd0fd741

View file

@ -510,6 +510,7 @@ get_shell() {
"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}"
;; ;;
esac esac