Commit 844720f8 authored by Dylan Araps's avatar Dylan Araps

Shell: Make all other shells use --version

parent 91825d4b
...@@ -502,15 +502,15 @@ get_shell() { ...@@ -502,15 +502,15 @@ get_shell() {
case "${SHELL##*/}" in case "${SHELL##*/}" in
"bash") shell+="${BASH_VERSION/-*}" ;; "bash") shell+="${BASH_VERSION/-*}" ;;
"fish" | "zsh" | "tcsh" | "csh" | "ksh" | "xonsh")
shell+="$("$SHELL" --version 2>&1)"
shell="${shell/${SHELL##*/}}"
;;
"mksh") "mksh")
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')" shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
shell="${shell/ * KSH}" shell="${shell/ * KSH}"
;; ;;
*)
shell+="$("$SHELL" --version 2>&1)"
shell="${shell/${SHELL##*/}}"
;;
esac esac
# Remove unwanted info # Remove unwanted info
......
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