| Summary: | bash completion breaks on bash 3.0 upgrade | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Ben Ford <ben> |
| Component: | Current packages | Assignee: | 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: | --- | |
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.