Giter Site home page Giter Site logo

Comments (4)

scop avatar scop commented on July 23, 2024

The only idea off the cuff I have is that I suggest checking what the file $(brew --prefix)/etc/bash_completion contains. Maybe it was downloaded over invalid HTTP URL which resulted in a 404 not found, and that found its way to the file's contents?

(No setup to test brew here, sorry.)

from bash-completion.

Brototype avatar Brototype commented on July 23, 2024

The file looks fine - to be sure is reinstalled via brew but still the same issue.

from bash-completion.

scop avatar scop commented on July 23, 2024

The only other tip I have is to enable trace output according to the instructions at https://github.com/scop/bash-completion/#troubleshooting and see if that produces something useful. Be sure to turn on the tracing before loading bash_completion in your .bash_profile. Or fire up a fresh bash (bash --norc), turn on the tracing options, then source bash_completion manually.

If this is of no use, I'm afraid the next stop for you to ask help from should be the brew bash-completion maintainers.

from bash-completion.

Brototype avatar Brototype commented on July 23, 2024

Look at this snippet it looks like it has something to do with kubectl

...
/sbin:/usr/sbin:/usr/local/sbin
+++ type k3b
++ for i in '$(LC_ALL=C command ls "$BASH_COMPLETION_COMPAT_DIR")'
++ i=/usr/local/etc/bash_completion.d/kldload
++ [[ kldload != @(*~|*.bak|*.swp|\#*\#|*.dpkg*|*.rpm@(orig|new|save)|Makefile*) ]]
++ [[ -f /usr/local/etc/bash_completion.d/kldload ]]
++ [[ -r /usr/local/etc/bash_completion.d/kldload ]]
++ . /usr/local/etc/bash_completion.d/kldload
+++ '[' Darwin = FreeBSD ']'
++ for i in '$(LC_ALL=C command ls "$BASH_COMPLETION_COMPAT_DIR")'
++ i=/usr/local/etc/bash_completion.d/kubectl
++ [[ kubectl != @(*~|*.bak|*.swp|\#*\#|*.dpkg*|*.rpm@(orig|new|save)|Makefile*) ]]
++ [[ -f /usr/local/etc/bash_completion.d/kubectl ]]
++ [[ -r /usr/local/etc/bash_completion.d/kubectl ]]
++ . /usr/local/etc/bash_completion.d/kubectl
+++ 404: Not Found
-bash: 404:: command not found
++ for i in '$(LC_ALL=C command ls "$BASH_COMPLETION_COMPAT_DIR")'
...

EDIT: exactly ....

cat /usr/local/etc/bash_completion.d/kubectl
+ cat /usr/local/etc/bash_completion.d/kubectl
404: Not Found

was resolved after rm this file

from bash-completion.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.