From 02240d70a8c0c22f423c3b314f19ba72f45ee816 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 30 Nov 2018 14:08:46 +1300 Subject: Add explanatory comments for version check --- bash/bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bash') diff --git a/bash/bashrc b/bash/bashrc index e8348317..b8ecec01 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -21,9 +21,9 @@ if [ -n "$ENV" ] ; then . "$ENV" fi -# Ensure we're using at least version 3.0. -[ -n "$BASH_VERSINFO" ] || return -((BASH_VERSINFO[0] >= 3)) || return +# Ensure we're using at least version 3.0 +[ -n "$BASH_VERSINFO" ] || return # Check version array exists (>=2.0) +((BASH_VERSINFO[0] >= 3)) || return # Check actual major version number # Clear away command_not_found_handle if a system bashrc file set it up unset -f command_not_found_handle -- cgit v1.2.3