aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2021-11-16 11:08:56 +1300
committerTom Ryder <tom@sanctum.geek.nz>2021-11-16 11:08:56 +1300
commit70e9e99a46ac55da3b23eda1a8dbab6ba94099f1 (patch)
treecdbc7ecc7a30534f4b8996e376a69951fe272889
parentUse consistent punctuation in vimrc comments (diff)
downloaddotfiles-70e9e99a46ac55da3b23eda1a8dbab6ba94099f1.tar.gz
dotfiles-70e9e99a46ac55da3b23eda1a8dbab6ba94099f1.zip
Ignore SC2296 for a subtlety of ksh93
> In ksh/shrc.d/ksh.sh line 25: > ( test -n "${.sh.version}" ) 2>/dev/null || return > ^---------^ SC2296 (error): Parameter expansions can't start with .. Double check syntax. > > > In ksh/shrc.d/ksh.sh line 28: > KSH_VERSION=${.sh.version} > ^---------^ SC2296 (error): Parameter expansions can't start with .. Double check syntax.
-rw-r--r--ksh/shrc.d/ksh.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ksh/shrc.d/ksh.sh b/ksh/shrc.d/ksh.sh
index 9e032756..f074c832 100644
--- a/ksh/shrc.d/ksh.sh
+++ b/ksh/shrc.d/ksh.sh
@@ -21,10 +21,11 @@ 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
+ # shellcheck disable=SC2234,SC2296
( test -n "${.sh.version}" ) 2>/dev/null || return
# If that peculiarly named variable was set, then that's our KSH_VERSION
+ # shellcheck disable=SC2296
KSH_VERSION=${.sh.version}
fi