aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-21 09:55:59 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-21 09:55:59 +1300
commite11d5698c4da7f8e9b104415a557003c3a3b4f69 (patch)
treee2b0e5c0eb61288ff34a98e5663982418dd3bb1b /bash
parentRefine definition of local var (diff)
downloaddotfiles-e11d5698c4da7f8e9b104415a557003c3a3b4f69.tar.gz
dotfiles-e11d5698c4da7f8e9b104415a557003c3a3b4f69.zip
More explicitly use test builtin for version test
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_logout2
-rw-r--r--bash/bash_profile2
-rw-r--r--bash/bashrc2
3 files changed, 3 insertions, 3 deletions
diff --git a/bash/bash_logout b/bash/bash_logout
index 730cb45d..29264c78 100644
--- a/bash/bash_logout
+++ b/bash/bash_logout
@@ -1,5 +1,5 @@
# Give up completely if no BASH_VERSINFO (<2.0)
-if ! [ "$BASH_VERSINFO" ] ; then
+if ! test "$BASH_VERSINFO" ; then
return
fi
diff --git a/bash/bash_profile b/bash/bash_profile
index 867ad533..d7b703eb 100644
--- a/bash/bash_profile
+++ b/bash/bash_profile
@@ -1,5 +1,5 @@
# Give up completely if no BASH_VERSINFO (<2.0)
-if ! [ "$BASH_VERSINFO" ] ; then
+if ! test "$BASH_VERSINFO" ; then
return
fi
diff --git a/bash/bashrc b/bash/bashrc
index 4b37f7cb..2caa80c5 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -1,5 +1,5 @@
# Give up completely if no BASH_VERSINFO (<2.0)
-if ! [ "$BASH_VERSINFO" ] ; then
+if ! test "$BASH_VERSINFO" ; then
return
fi