Merge pull request #14693 from timvisher/fix-posix-mode-test-for-bash-3

completions/bash/brew: Fix testing for POSIX mode in bash >= 3.2.57
This commit is contained in:
Mike McQuaid 2023-02-17 17:16:08 +00:00 committed by GitHub
commit 82a36d24fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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