From 11b4fc709805b3e3f106e0b39d55b4ea2e608afc Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 17 Dec 2016 19:30:40 +1300 Subject: Add a second version check to detect ksh --- sh/shrc.d/ksh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/shrc.d/ksh.sh b/sh/shrc.d/ksh.sh index 9cb72e8e..5e9fee3b 100644 --- a/sh/shrc.d/ksh.sh +++ b/sh/shrc.d/ksh.sh @@ -2,7 +2,7 @@ # configuration if it was defined or if we can find it. Bash and Zsh invoke # their own rc files first, which I've written to then look for ~/.shrc; ksh # does it the other way around. -[ -n "$KSH_VERSION" ] || return +[ -n "$KSH_VERSION" ] || [ -n "${.sh.version}" ] || return [ -n "$KSH_ENV" ] || KSH_ENV=$HOME/.kshrc [ -f "$KSH_ENV" ] || return . "$KSH_ENV" -- cgit v1.2.3