From c6075d36fd9351b9be722ebf99be838377c26860 Mon Sep 17 00:00:00 2001 From: Tim Visher Date: Fri, 17 Feb 2023 11:13:54 -0500 Subject: [PATCH] completions/bash/brew: Fix testing for POSIX mode in bash >= 3.2.57 https://github.com/Homebrew/brew/issues/14643 --- completions/bash/brew | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/completions/bash/brew b/completions/bash/brew index d7197267f9..5d79136756 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -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