Merge pull request #14736 from aphedges/fix-bash-completion
Handle undeclared POSIXLY_CORRECT in Bash completions
This commit is contained in:
		
						commit
						7e48ed50f7
					
				@ -15,7 +15,7 @@
 | 
			
		||||
# This file is automatically generated by running `brew generate-man-completions`.
 | 
			
		||||
# See Library/Homebrew/completions/bash.erb for editing instructions.
 | 
			
		||||
 | 
			
		||||
if [[ -n ${POSIXLY_CORRECT} ]] || shopt -oq 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