Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 42878

Summary: gentoo bash completion addon script calls unsupported bash option in 2.05
Product: Gentoo Linux Reporter: John Russell <jjrussell>
Component: Current packagesAssignee: Christian Birchinger (RETIRED) <joker>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Russell 2004-02-25 05:57:18 UTC
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.
Comment 1 Christian Birchinger (RETIRED) gentoo-dev 2004-02-27 10:17:19 UTC
Since gentoo has only bash 2.05b in the portage tree i'll simply raise the version
In the DEPEND variable on next release.
Comment 2 Christian Birchinger (RETIRED) gentoo-dev 2004-02-27 10:35:31 UTC
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.