Add BSD shells to shell_version
This commit is contained in:
parent
39033fdeed
commit
6a3c4d4fb8
1 changed files with 8 additions and 2 deletions
10
fetch
10
fetch
|
@ -635,10 +635,16 @@ getshell () {
|
|||
shell=${shell/ zsh}
|
||||
;;
|
||||
|
||||
*"mksh"*)
|
||||
shell+="$(mksh -c 'printf "%s" "$KSH_VERSION"')"
|
||||
*"mksh"* | *"ksh")
|
||||
shell+="$("$SHELL" -c 'printf "%s" "$KSH_VERSION"')"
|
||||
shell=${shell/ * KSH}
|
||||
;;
|
||||
|
||||
*"tcsh"* | *"csh"*)
|
||||
shell+="$("$SHELL" --version)"
|
||||
shell=${shell/tcsh}
|
||||
shell=${shell/\(*}
|
||||
;;
|
||||
esac
|
||||
|
||||
shell="${shell/\(*\)}"
|
||||
|
|
Loading…
Reference in a new issue