Add BSD shells to shell_version

This commit is contained in:
Dylan 2016-01-29 15:40:52 +11:00
parent 39033fdeed
commit 6a3c4d4fb8

10
fetch
View file

@ -635,10 +635,16 @@ getshell () {
shell=${shell/ zsh} shell=${shell/ zsh}
;; ;;
*"mksh"*) *"mksh"* | *"ksh")
shell+="$(mksh -c 'printf "%s" "$KSH_VERSION"')" shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
shell=${shell/ * KSH} shell=${shell/ * KSH}
;; ;;
*"tcsh"* | *"csh"*)
shell+="$("$SHELL" --version)"
shell=${shell/tcsh}
shell=${shell/\(*}
;;
esac esac
shell="${shell/\(*\)}" shell="${shell/\(*\)}"