Package: bash-completionVersion: 1:2.0-1
Typing "cc <TAB>" at the bash prompt does not give any hint.
The problem lies in the following piece of /usr/share/bash-completion/completions/cc: complete -F _gcc gcc g++ g77 gcj gpc &&{ cc --version 2>/dev/null | grep -q GCC && complete -F _gcc cc || : c++ --version 2>/dev/null | grep -q GCC && complete -F _gcc c++ || :} "cc/gcc/c++/g++ --version" do not print GCC, therefore the completion for cc/c++ is never installed.
I suggest to use this check instead:
 [[ "$(readlink -f /usr/bin/cc)" == "$(readlink -f /usr/bin/gcc)" ]]
However a problem still remains: when cc is not GCC, there is no completion. Therefore
 || :
should be replaced with
 || complete -F _minimal cc


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to