diff options
-rw-r--r-- | bash/bash_logout | 2 | ||||
-rw-r--r-- | bash/bash_profile | 4 | ||||
-rw-r--r-- | bash/bashrc | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/bash/bash_logout b/bash/bash_logout index d12d5802..ac437add 100644 --- a/bash/bash_logout +++ b/bash/bash_logout @@ -1,5 +1,5 @@ # Ensure we're using at least version 2.05 -if ! test -n "$BASH_VERSINFO" ; then +if ! [ -n "$BASH_VERSINFO" ] ; then return elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 4)) ; then diff --git a/bash/bash_profile b/bash/bash_profile index f62a10db..7366840e 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -1,10 +1,10 @@ # Load ~/.profile regardless of shell version -if test -e "$HOME"/.profile ; then +if [ -e "$HOME"/.profile ] ; then . "$HOME"/.profile fi # Ensure we're using at least version 2.05 -if ! test -n "$BASH_VERSINFO" ; then +if ! [ -n "$BASH_VERSINFO" ] ; then return elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then diff --git a/bash/bashrc b/bash/bashrc index 4e7895c3..9942af24 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -1,5 +1,5 @@ # Ensure we're using at least version 2.05 -if ! test -n "$BASH_VERSINFO" ; then +if ! [ -n "$BASH_VERSINFO" ] ; then return elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then |