mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
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:
parent
43a542a088
commit
c6075d36fd
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user