Merge pull request #14736 from aphedges/fix-bash-completion

Handle undeclared POSIXLY_CORRECT in Bash completions
This commit is contained in:
Bo Anderson 2023-02-21 00:14:22 +00:00 committed by GitHub
commit 7e48ed50f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@
# This file is automatically generated by running `brew generate-man-completions`. # This file is automatically generated by running `brew generate-man-completions`.
# See Library/Homebrew/completions/bash.erb for editing instructions. # See Library/Homebrew/completions/bash.erb for editing instructions.
if [[ -n ${POSIXLY_CORRECT} ]] || shopt -oq 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