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

Bug 59062

Summary: bash completion breaks on bash 3.0 upgrade
Product: Gentoo Linux Reporter: Ben Ford <ben>
Component: Current packagesAssignee: Christian Birchinger (RETIRED) <joker>
Status: RESOLVED DUPLICATE    
Severity: normal CC: base-system
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ben Ford 2004-08-01 04:02:57 UTC
code to start bash completion checks for version 2.04, but not 3.0

fixed function:

# START bash completion -- do not remove this line
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ "$PS1" ] && \
( [ $bmajor -eq 3 ]  || ( [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] )) \
   && [ -f /etc/bash_completion ]; then # interactive shell
        # Source completion code
        . /etc/bash_completion
fi
unset bash bmajor bminor
# END bash completion -- do not remove this line


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ciaran McCreesh 2004-08-01 12:57:35 UTC
Already fixed...

*** This bug has been marked as a duplicate of 58708 ***