Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42878 - gentoo bash completion addon script calls unsupported bash option in 2.05
Summary: gentoo bash completion addon script calls unsupported bash option in 2.05
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Christian Birchinger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-25 05:57 UTC by John Russell
Modified: 2004-02-27 10:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.