Commit bce34c8e authored by Dylan Araps's avatar Dylan Araps

Shell: Fix ksh on BSD, closes #539

parent 09de2155
......@@ -500,9 +500,10 @@ get_shell() {
case "${SHELL##*/}" in
"bash") shell+="${BASH_VERSION/-*}" ;;
"mksh")
"mksh" | "ksh")
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
shell="${shell/ * KSH}"
shell="${shell/version}"
;;
*)
......@@ -513,7 +514,6 @@ get_shell() {
# Remove unwanted info
shell="${shell/, version}"
shell="${shell/version * sh/ksh}"
shell="${shell/xonsh\//xonsh }"
shell="${shell/options*}"
shell="${shell/\(*\)}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment