We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44754f commit 77aec5fCopy full SHA for 77aec5f
bash-preexec.sh
@@ -43,7 +43,7 @@ fi
43
44
# We only support Bash 3.1+.
45
# Note: BASH_VERSINFO is first available in Bash-2.0.
46
-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
47
return 1
48
fi
49
0 commit comments