Index: clang/utils/bash-autocomplete.sh =================================================================== --- clang/utils/bash-autocomplete.sh +++ clang/utils/bash-autocomplete.sh @@ -2,6 +2,11 @@ _clang() { local cur prev words cword arg flags + # Require bash-completion with _init_completion + _init_completion 2>/dev/null + if [[ "$?" != 0 ]]; then + return + fi _init_completion -n : || return # bash always separates '=' as a token even if there's no space before/after '='.