completions/bash/brew: Fix testing for POSIX mode in bash >= 3.2.57

https://github.com/Homebrew/brew/issues/14643
This commit is contained in:
Tim Visher 2023-02-17 11:13:54 -05:00
parent 43a542a088
commit c6075d36fd

View File

@ -1,6 +1,6 @@
# Bash completion script for brew(1) # Bash completion script for brew(1)
if test -v POSIXLY_CORRECT || test -o posix if [[ -n ${POSIXLY_CORRECT} ]] || shopt -oq posix
then then
echo "Homebrew Bash completions do not work in POSIX mode" 1>&2 echo "Homebrew Bash completions do not work in POSIX mode" 1>&2
return return