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:
commit
82a36d24fb
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user