/etc/profile sources all /etc/profile.d/*.sh - but bash_completion installs only /etc/profile.d/bash-completion So completion won't work, even after configured with bashcomp-config. Reproducible: Always Steps to Reproduce: 1. # emerge bash-completion bash-completion-config 2. # bashcomp-config enable gentoo 3. # emerge gentoo<TAB><TAB> Actual Results: The completion didn't work. Expected Results: It should have completed all gentoo packages starting with "gentoo".
*** This bug has been marked as a duplicate of bug 124741 ***
Great, it's a duplicate! I read in the other "resolved" bug reports (where I didn't search, because the bug is clearly not resolved), that this is "by design". I think, that this design sucks. But apart from that, it should be documented somewhere (in /etc/profile?), that files in /etc/profile.d/ that don't end in *.sh should be sourced manually. It would also be a good idea to put a comment about this convention (?) in /etc/profile.d/bash-completion. You know, it's ok with me to be a lazy bum and don't fix anything, but it isn't ok to repeatedly steal time from people (myself + the other reporters of this bug) to figure this strange behavior out and cause them to file a lengthy bug report. It doesn't increase the chances, that people bother to report bugs at all in the future, but instead just fix them for themselves in case they encounter similar designs.