I've upgraded bashcomp recently and now I'm getting on each new shell error message: "bash: /etc/bash_completion.d/mount.linux: no such file or directory" I'm using bashcomp globally. Reproducible: Always Steps to Reproduce: 1. emerge =app-shells/bashcomp-20121024 2. enable bashcomp 3. eselect bashcomp enable --global mount 4. eselect bashcomp disable --global mount.linux 5. start new bash shell Actual Results: Error is printed to shell, twice: "bash: /etc/bash_completion.d/mount.linux: no such file or directory" Expected Results: No errors should be printed if you enable mount.linux completion, error goes away: eselect bashcomp disable --global mount.linux
Sorry, I've written wrong package name. equery b filename shows that these files belong to 'app-shells/bash-completion-2.1-r2'
Confirm on app-shells/bash-completion-2.1-r2. I believe it may be related to the following lines: $ head /usr/share/bash-completion/mount # mount(8) completion -*- shell-script -*- if [[ $OSTYPE == *linux* ]]; then . "$BASH_SOURCE.linux" return fi I haven't looked at the contents of BASH_SOURCE, but if it's /etc/bash_completion.d/mount, that explains why it's looking for /etc/bash_completion.d/mount.linux. Doing eselect bashcomp enable mount.linux causes the error message to disappear; however, that's an ugly hack. The implementation detail of there being mount vs mount.linux should remain hidden.
This bug is INVALID any more. mount* are not included in app-shells/bash-completion. See bug #579766.