From 06d91072667dc2585f96eb94a8a1eaab38cfbfa6 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 22 Aug 2016 16:17:43 +1200 Subject: Avoid repetition of KSH_ENV param expansion --- sh/shrc.d/ksh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh/shrc.d/ksh.sh b/sh/shrc.d/ksh.sh index b12f13c8..046cd6c4 100644 --- a/sh/shrc.d/ksh.sh +++ b/sh/shrc.d/ksh.sh @@ -4,7 +4,7 @@ # does it the other way around. case $KSH_VERSION in *'PD KSH '*|*'MIRBSD KSH '*) - [ -f "${KSH_ENV:-"$HOME"/.pdkshrc}" ] || return - . "${KSH_ENV:-"$HOME"/.pdkshrc}" + [ -f "${KSH_ENV:="$HOME"/.pdkshrc}" ] || return + . "$KSH_ENV" ;; esac -- cgit v1.2.3