aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:35:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-23 20:38:17 +1200
commit6efd18cba2cc0ae26d573c5c099df0ab519f40e0 (patch)
tree34c612163935bbef666c82094efbd078b95e8590 /bash/bashrc
parentSwap `builtin` for POSIX `command` in mkcd() (diff)
downloaddotfiles-6efd18cba2cc0ae26d573c5c099df0ab519f40e0.tar.gz
dotfiles-6efd18cba2cc0ae26d573c5c099df0ab519f40e0.zip
Expand and whitelist BASH_VERSINFO check in han(1)
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc
index d2562749..f5ca7c11 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -7,6 +7,7 @@ esac
# Ensure we're using at least version 2.05. Weird arithmetic syntax needed here
# due to leading zeroes and trailing letters in some 2.x version numbers (e.g.
# 2.05a).
+# shellcheck disable=SC2128
[ -n "$BASH_VERSINFO" ] || return
((BASH_VERSINFO[0] == 2)) &&
((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) &&