aboutsummaryrefslogtreecommitdiff
path: root/ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-25 14:52:52 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-25 14:52:52 +1200
commitdf054c2839260c6b3de1328c9f7a47900c0db1e8 (patch)
tree8303a657363f4e8e38258bd141c8c0a3f0457016 /ksh
parentacb8034af9a1e0cf93b8f4ee614d9c9eaeaf8cd7 (diff)
downloaddotfiles-df054c2839260c6b3de1328c9f7a47900c0db1e8.tar.gz
Stamp down three new ShellCheck 0.5.0 errors
All of these are false positives.
Diffstat (limited to 'ksh')
-rw-r--r--ksh/shrc.d/ksh.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/ksh/shrc.d/ksh.sh b/ksh/shrc.d/ksh.sh
index b591f37c..cc6eeb32 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=SC2234
( test -n "${.sh.version}" ) 2>/dev/null || return
# If that peculiarly named variable was set, then that's our KSH_VERSION