—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
This was fixed a long time ago. Closing.
Closed #12400.
Doesn't work for me: CentOS 7.3, bash-completion 2.1-6.el7, kubectl-1.7.3-1
Not working on Google Cloud Debian VM with bash-completion 2.1-4.3.
After have done all things on https://kubernetes.io/docs/tasks/tools/install-kubectl/ on my iMac, I still got error: type _init_completion not found.
And finally I found that, although I have update my bash, and I did got this message:
$which bash
/usr/local/bin/bash
$bash --version
GNU bash, version 5.0.7(1)-release (x86_64-apple-darwin18.5.0)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
BUT, my terminal was still using old bash in fact:
$env
SHELL=/bin/bash
$/bin/bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18)
Copyright (C) 2007 Free Software Foundation, Inc.
Need to change my default shell by typing command
chsh -l /usr/local/bin/bash
and it work.
Need to change my default shell by typing command
chsh -l /usr/local/bin/bash
and it work.
Did you mean sudo chsh -s /usr/local/bin/bash
instead?
Thanks anyway for the hint!
it's 2023, if you're still getting this error on macos try another package called bash-completion@2
brew unlink bash-completion
brew install bash-completion@2
exit
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are on a team that was mentioned.
@avoidik Thank you for this! I was using a new Bash version, but was still using the older (default) bash-completion
from Homebrew. Installing the newer bash-completion
version for my newer Bash version fixed it for me.
Simple as brew unlink bash-completion && brew install bash-completion@2
for me!
Thanks again!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are on a team that was mentioned.