diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-30 23:57:24 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-05-30 23:57:24 +1200 |
commit | 6fd242e8943cbec49feff19923cd355a2ce66c3a (patch) | |
tree | 5220c172ca3e8afc172034e77c93fc157f9252dd | |
parent | Overhaul grep(1) and ls(1) options and wrappers (diff) | |
download | dotfiles-6fd242e8943cbec49feff19923cd355a2ce66c3a.tar.gz dotfiles-6fd242e8943cbec49feff19923cd355a2ce66c3a.zip |
Safer version number test
-rw-r--r-- | bash/bashrc.d/pass.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/pass.bash b/bash/bashrc.d/pass.bash index 14a248e2..2768d879 100644 --- a/bash/bashrc.d/pass.bash +++ b/bash/bashrc.d/pass.bash @@ -1,5 +1,5 @@ # Requires Bash >= 4.0 for dotglob and globstar -if ((${BASH_VERSINFO[0]} < 4)) ; then +if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} < 4)) ; then return fi |