diff options
-rw-r--r-- | bash/bash_logout | 6 | ||||
-rw-r--r-- | bash/bash_profile | 6 | ||||
-rw-r--r-- | bash/bashrc | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/bash/bash_logout b/bash/bash_logout index 8d703a79..d12d5802 100644 --- a/bash/bash_logout +++ b/bash/bash_logout @@ -1,9 +1,9 @@ # Ensure we're using at least version 2.05 if ! test -n "$BASH_VERSINFO" ; then return -elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) \ - && ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 4)) ; then - return +elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 4)) ; then + return fi # Clear console if possible when logging out diff --git a/bash/bash_profile b/bash/bash_profile index 91c0f867..f62a10db 100644 --- a/bash/bash_profile +++ b/bash/bash_profile @@ -6,9 +6,9 @@ fi # Ensure we're using at least version 2.05 if ! test -n "$BASH_VERSINFO" ; then return -elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) \ - && ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then - return +elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then + return fi # Source interactive Bash config if it exists diff --git a/bash/bashrc b/bash/bashrc index c677d110..fde93050 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -1,9 +1,9 @@ # Ensure we're using at least version 2.05 if ! test -n "$BASH_VERSINFO" ; then return -elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) \ - && ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then - return +elif ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} == 2)) && \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} < 5)) ; then + return fi # Don't do anything if not running interactively @@ -78,8 +78,8 @@ if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} >= 4)) ; then # Warn me about stopped jobs when exiting; only if >=4.1 due to bug # <https://lists.gnu.org/archive/html/bug-bash/2009-02/msg00176.html> - if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} > 4)) \ - || ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} > 0)) ; then + if ((10#${BASH_VERSINFO[0]%%[![:digit:]]*} > 4)) || \ + ((10#${BASH_VERSINFO[1]%%[![:digit:]]*} > 0)) ; then shopt -s checkjobs fi fi |