diff --git a/bash-preexec.sh b/bash-preexec.sh index bc98976..6f26569 100644 --- a/bash-preexec.sh +++ b/bash-preexec.sh @@ -43,7 +43,7 @@ fi # We only support Bash 3.1+. # Note: BASH_VERSINFO is first available in Bash-2.0. -if [[ -z "${BASH_VERSINFO-}" || BASH_VERSINFO[0] -lt 3 || BASH_VERSINFO[0] -eq 3 && BASH_VERSINFO[1] -lt 1 ]]; then +if [[ -z "${BASH_VERSINFO-}" ]] || (( BASH_VERSINFO[0] < 3 || (BASH_VERSINFO[0] == 3 && BASH_VERSINFO[1] < 1) )); then return 1 fi