diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-20 20:20:07 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-20 20:20:07 +1200 |
commit | 0cef2963555f4045afe6a0440b613e994f3f3c94 (patch) | |
tree | 2bce8ea0a3cdb5c74fcbb9c1a897d20a26d5cbe3 /bash/bashrc | |
parent | Add some var quoting within param expansion (diff) | |
download | dotfiles-0cef2963555f4045afe6a0440b613e994f3f3c94.tar.gz dotfiles-0cef2963555f4045afe6a0440b613e994f3f3c94.zip |
Clearer glob for version test
Diffstat (limited to 'bash/bashrc')
-rw-r--r-- | bash/bashrc | 2 |
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 |