Merge pull request #14669 from maxim-belkin/completions-no-posix

Bash completions: warn and exit if POSIX mode detected
This commit is contained in:
Mike McQuaid 2023-02-16 16:41:03 +00:00 committed by GitHub
commit 0640cdce8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,12 @@
%>
# Bash completion script for brew(1)
if test -v POSIXLY_CORRECT || test -o posix
then
echo "Homebrew Bash completions do not work in POSIX mode" 1>&2
return
fi
__brewcomp_words_include() {
local element idx
for (( idx = 1; idx < COMP_CWORD; idx++ ))

View File

@ -1,5 +1,11 @@
# Bash completion script for brew(1)
if test -v POSIXLY_CORRECT || test -o posix
then
echo "Homebrew Bash completions do not work in POSIX mode" 1>&2
return
fi
__brewcomp_words_include() {
local element idx
for (( idx = 1; idx < COMP_CWORD; idx++ ))