Skip to content

Buncha "have: command not found" errors in bash #10

Description

@apjanke

For the last week or so, when I fire up bash from inside a zsh session inside a Mac terminal (iTerm2) using these dotfiles, I get a bunch of error messages like "bash: have: command not found".

I don't know what would be calling have; I don't seem to be doing so inside my bashy dotfiles here.

Maybe it's some bash completion thing? https://stackoverflow.com/questions/12874920/have-keyword-for-bash-completion

Symptoms

🎊  janke@ (base) ~ 
  bash
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: /usr/local/etc/bash_completion.d/cvs: line 20: syntax error near unexpected token `('
bash: /usr/local/etc/bash_completion.d/cvs: line 20: `        COMPREPLY=( $( command ls -d ${cvsroot}/${prefix}/!(CVSROOT) ) )'
bash: /usr/local/etc/bash_completion.d/cvs: line 21: syntax error near unexpected token `else'
bash: /usr/local/etc/bash_completion.d/cvs: line 21: `    else'
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: have: command not found
bash: /usr/local/etc/bash_completion.d/dvd+rw-tools: line 19: syntax error near unexpected token `('
bash: /usr/local/etc/bash_completion.d/dvd+rw-tools: line 19: `        /?(r)dev/*)'
bash: have: command not found
bash: have: command not found

No idea what's going on here. I don't see any have calls in my dotfiles.

This is on at least angharad, my macOS 14.2.1 iMac on Intel Mac.

TODO

  • Investigate interaction between MacPorts and Homebrew bash completion, and my own fussy "support both shells" user rc file arrangement.
  • Add notes to the doco about not mixing MacPorts and Homebrew, at least wrt bash completion and other configuration.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions