Skip to content

Instantly share code, notes, and snippets.

@raldred
Created March 1, 2019 18:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raldred/098801f9ea47bd37c64652af2ef35baf to your computer and use it in GitHub Desktop.
Save raldred/098801f9ea47bd37c64652af2ef35baf to your computer and use it in GitHub Desktop.
Homebrew completion errors
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/ant: line 45: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/ant: line 45: syntax error near `-@(?'
-bash: /usr/local/etc/bash_completion.d/ant: line 45: ` if [[ "${COMP_WORDS[i]}" == -@(?(build)file|f) ]]; then'
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/apt: line 12: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/apt: line 12: syntax error near `@(i'
-bash: /usr/local/etc/bash_completion.d/apt: line 12: ` if [[ ${COMP_WORDS[i]} == @(install|remove|autoremove|purge|source|build-dep) ]]; then'
-bash: /usr/local/etc/bash_completion.d/apt-build: line 12: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/apt-build: line 12: syntax error near `@(i'
-bash: /usr/local/etc/bash_completion.d/apt-build: line 12: ` if [[ ${COMP_WORDS[i]} == @(install|remove|source|info|clean) ]]; then'
-bash: /usr/local/etc/bash_completion.d/aptitude: line 32: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/aptitude: line 32: syntax error near `@(@'
-bash: /usr/local/etc/bash_completion.d/aptitude: line 32: ` if [[ ${COMP_WORDS[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag) ]]; then'
-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/bash-builtins: line 57: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/bash-builtins: line 57: syntax error near `@(d'
-bash: /usr/local/etc/bash_completion.d/bash-builtins: line 57: ` if [[ $1 == @(declare|typeset) ]]; then'
-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/chsh: line 20: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/chsh: line 20: syntax error near `@(L'
-bash: /usr/local/etc/bash_completion.d/chsh: line 20: ` if [[ "$cur" == -* && "$( uname -s )" == @(Linux|GNU|GNU/*) ]]; then'
-bash: have: command not found
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/coreutils: line 32: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/coreutils: line 32: syntax error near `-@(R'
-bash: /usr/local/etc/bash_completion.d/coreutils: line 32: ` [[ "$w" == -@(R|-recursive) ]] && opts="-H -L -P" && break'
-bash: have: command not found
-bash: have: command not found
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/crontab: line 50: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/crontab: line 50: syntax error near `-@(l'
-bash: /usr/local/etc/bash_completion.d/crontab: line 50: ` [[ "${COMP_LINE}" == *\ -@(l|r|e)* ]] || _filedir'
-bash: have: command not found
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/cvs: line 193: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/cvs: line 193: syntax error near `-@(r'
-bash: /usr/local/etc/bash_completion.d/cvs: line 193: ` [[ "$prev" == -@(r|D) ]] && return 0'
-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
-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: [: too many arguments
-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: [: =: unary operator expected
-bash: [: =: unary operator expected
-bash: have: command not found
-bash: have: command not found
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/iproute2: line 30: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/iproute2: line 30: syntax error near `-b?(a'
-bash: /usr/local/etc/bash_completion.d/iproute2: line 30: ` [[ ${words[subcword]} == -b?(atch) ]] && return 0'
-bash: [: =: unary operator expected
-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/java: line 19: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/java: line 19: syntax error near `-@(c'
-bash: /usr/local/etc/bash_completion.d/java: line 19: ` if [[ "${COMP_WORDS[i]}" == -@(cp|classpath) ]]; then'
-bash: /usr/local/etc/bash_completion.d/k3b: line 28: syntax error near unexpected token `('
-bash: /usr/local/etc/bash_completion.d/k3b: line 28: ` _filedir @(cue|iso|toc)'
-bash: [: =: unary operator expected
-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/make: line 43: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/make: line 43: syntax error near `-@(C'
-bash: /usr/local/etc/bash_completion.d/make: line 43: ` if [[ ${COMP_WORDS[i]} == -@(C|-directory) ]]; then'
-bash: /usr/local/etc/bash_completion.d/man: line 30: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/man: line 30: syntax error near `@(L'
-bash: /usr/local/etc/bash_completion.d/man: line 30: ` if [[ $uname == @(Linux|GNU|GNU/*|FreeBSD|Cygwin|CYGWIN_*) ]]; then'
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/mcrypt: line 65: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/mcrypt: line 65: syntax error near `-@(d'
-bash: /usr/local/etc/bash_completion.d/mcrypt: line 65: ` if [[ ${COMP_WORDS[i]} == -@(d|-decrypt) ]]; then'
-bash: /usr/local/etc/bash_completion.d/mdadm: line 39: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/mdadm: line 39: syntax error near `-@(l'
-bash: /usr/local/etc/bash_completion.d/mdadm: line 39: ` if [[ "${COMP_WORDS[i]}" == -@(l|-level) ]]; then'
-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/monodevelop: line 29: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/monodevelop: line 29: syntax error near `@(b'
-bash: /usr/local/etc/bash_completion.d/monodevelop: line 29: ` if [[ ${COMP_WORDS[i]} == @(build|generate-makefiles|setup) ]]; then'
-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: [: =: unary operator expected
-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: [: =: unary operator expected
-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: [: =: unary operator expected
-bash: have: command not found
-bash: have: command not found
-bash: [: =: unary operator expected
-bash: /usr/local/etc/bash_completion.d/python: line 24: syntax error near unexpected token `('
-bash: /usr/local/etc/bash_completion.d/python: line 24: ` !(?(*/)python*([0-9.])|-?))'
-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/rpm: line 185: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/rpm: line 185: syntax error near `-@(*'
-bash: /usr/local/etc/bash_completion.d/rpm: line 185: ` if [[ $COMP_LINE == *\ -@(*([^ -])f|-file )* ]]; then'
-bash: have: command not found
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/rsync: line 68: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/rsync: line 68: syntax error near `-@(e'
-bash: /usr/local/etc/bash_completion.d/rsync: line 68: ` if [[ "${COMP_WORDS[i]}" == -@(e|-rsh) ]]; then'
-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/service: line 17: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/service: line 17: syntax error near `@(*'
-bash: /usr/local/etc/bash_completion.d/service: line 17: ` [[ ${COMP_WORDS[0]} != @(*init.d/!(functions|~)|service) ]] && return 0'
-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/sysv-rc: line 27: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/sysv-rc: line 27: syntax error near `?($'
-bash: /usr/local/etc/bash_completion.d/sysv-rc: line 27: ` elif [[ "$prev" == ?($( tr " " "|" <<<${services[@]} )) ]]; then'
-bash: /usr/local/etc/bash_completion.d/tar: line 17: syntax error near unexpected token `('
-bash: /usr/local/etc/bash_completion.d/tar: line 17: ` ?(-)[cr]*f)'
-bash: have: command not found
-bash: have: command not found
-bash: have: command not found
-bash: /usr/local/etc/bash_completion.d/update-alternatives: line 39: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/update-alternatives: line 39: syntax error near `--@(i'
-bash: /usr/local/etc/bash_completion.d/update-alternatives: line 39: ` if [[ "${COMP_WORDS[i]}" == --@(install|remove|auto|display|config|remove-all|set) ]]; then'
-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: [: =: unary operator expected
-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/xsltproc: line 39: syntax error in conditional expression: unexpected token `('
-bash: /usr/local/etc/bash_completion.d/xsltproc: line 39: syntax error near `--?(s'
-bash: /usr/local/etc/bash_completion.d/xsltproc: line 39: ` [[ $COMP_CWORD -gt 2 && `_get_cword '' 2` == --?(string)param ]] && \'
-bash: /usr/local/etc/bash_completion.d/xz: line 26: syntax error near unexpected token `('
-bash: /usr/local/etc/bash_completion.d/xz: line 26: ` --decompress|--list|--test|-!(-*)[dlt]*)'
-bash: have: command not found
-bash: have: command not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment