aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-20 20:20:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-20 20:20:07 +1200
commit0cef2963555f4045afe6a0440b613e994f3f3c94 (patch)
tree2bce8ea0a3cdb5c74fcbb9c1a897d20a26d5cbe3
parentAdd some var quoting within param expansion (diff)
downloaddotfiles-0cef2963555f4045afe6a0440b613e994f3f3c94.tar.gz
dotfiles-0cef2963555f4045afe6a0440b613e994f3f3c94.zip
Clearer glob for version test
-rw-r--r--bash/bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc b/bash/bashrc
index a4706284..088182ef 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -14,7 +14,7 @@ esac
# shellcheck disable=SC2128
[ -n "$BASH_VERSINFO" ] || return
((BASH_VERSINFO[0] == 2)) &&
- ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) &&
+ ((10#${BASH_VERSINFO[1]%%[!0-9]*} < 5)) &&
return
# Don't do anything if running a restricted shell