1.) Missing backslash in /etc/profile.d/bash-completion.sh when function _load_completions is called. Arguments are separated into lines and one of them is not ended with backslash. This causes error like "bash: /etc/bash_completion.d/eselect: Permission denied" (or eselect is substituted with other enabled completion script) when starting bash. 2.) bash function "have" used in many scripts from /usr/share/bash-completion/ is undefined at the end of first executed script = /usr/share/bash-completion/.bash-completion This causes errors "have: comand not found" when starting bash. Reproducible: Always Steps to Reproduce: 1. enable completion script with eselect that uses function "have". For instance "unrar". 2. run "bash" 3. Actual Results: Print error output to just started shell. Expected Results: No error output at all.
Well done! Thanks for the tip. I was looking at this since yesterday and I couldn't find the cause of it.
Sorry, I really messed up that script. We are already on bash-completion-1.1-r2 which doesn't have that problem.