aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/vared.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-08-22 19:15:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-08-22 19:15:56 +1200
commit37e1d75d0c51a2e8e947ae524e4e686e0a9eeffc (patch)
tree49df4863aef918a9d4e8b45a14ba0197195da8b2 /bash/bashrc.d/vared.bash
parentUse simpler markup for README code block (diff)
downloaddotfiles-37e1d75d0c51a2e8e947ae524e4e686e0a9eeffc.tar.gz
dotfiles-37e1d75d0c51a2e8e947ae524e4e686e0a9eeffc.zip
Remove overkill chopping on BASH_VERSINFO[0]
Pointed out by Amy Grace.
Diffstat (limited to 'bash/bashrc.d/vared.bash')
-rw-r--r--bash/bashrc.d/vared.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/vared.bash b/bash/bashrc.d/vared.bash
index e119319d..24ba0eac 100644
--- a/bash/bashrc.d/vared.bash
+++ b/bash/bashrc.d/vared.bash
@@ -1,5 +1,5 @@
# Requires Bash >= 4.0 for read -i and ${!name}
-if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} < 4)) ; then
+if ((BASH_VERSINFO[0] < 4)) ; then
return
fi