From 6a3c4d4fb899e6d782ae134ce4a0a84705be20a4 Mon Sep 17 00:00:00 2001 From: Dylan Date: Fri, 29 Jan 2016 15:40:52 +1100 Subject: [PATCH] Add BSD shells to shell_version --- fetch | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/fetch b/fetch index f3fb550f..d62daa51 100755 --- a/fetch +++ b/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/\(*\)}"