The script entitled "gentoo" which is distributed with the bash_completion package uses the bash option "-o nospace" which was not introduced until bash 2.05b. In the main bash_completion script there is an explicit check for this and then a variable called $nospace is created. It is either empty for < 2.05b or contains "-o nospace" for >= 2.05b. All occurences of "-o nospace" in the gentoo bash completion script should be replaced with use of the $nospace variable which is set from the main script. Reproducible: Always Steps to Reproduce: 1.load bash_completion with bash < 2.05b 2.shell will output error message "bash: complete: nospace: invalid option name" 3.Nothing else. Actual Results: shell will output error message "bash: complete: nospace: invalid option name" Expected Results: No output All occurences of "-o nospace" in the gentoo bash completion script should be replaced with use of the $nospace variable which is set from the main script.
Since gentoo has only bash 2.05b in the portage tree i'll simply raise the version In the DEPEND variable on next release.
Marked the latest release stable with your additional s/-o nospace/$nospace/ replacement. I hope that's the only incompatibility with the old bash release because otherwise i'll really just raise the requirement in the DEPEND.