From fec6664477b8836a9d020602f8ba15b65bec5659 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 19 Dec 2016 13:58:28 +1300 Subject: Block a well-intended shellcheck error --- ksh/shrc.d/ksh.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'ksh/shrc.d') diff --git a/ksh/shrc.d/ksh.sh b/ksh/shrc.d/ksh.sh index 106c898f..8e33da7c 100644 --- a/ksh/shrc.d/ksh.sh +++ b/ksh/shrc.d/ksh.sh @@ -21,6 +21,7 @@ if [ -z "$KSH_VERSION" ] ; then # Test whether we have content in the .sh.version variable. Suppress errors # and run it in a subshell to work around parsing error precedence. + # shellcheck disable=SC2154 ( test -n "${.sh.version}" ) 2>/dev/null || return # If that peculiarly named variable was set, then that's our KSH_VERSION -- cgit v1.2.3