Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#1245 - bash-completion package broken with bash 3.x
Attached to Project:
Arch Linux
Opened by Leif H. Askeland (natael) - Thursday, 12 August 2004, 04:57 GMT
Last edited by Eric Johnson (eric) - Thursday, 12 August 2004, 12:19 GMT
Opened by Leif H. Askeland (natael) - Thursday, 12 August 2004, 04:57 GMT
Last edited by Eric Johnson (eric) - Thursday, 12 August 2004, 12:19 GMT
|
DetailsThe version check being done in /etc/profile.d/bash_completion.sh is broken for bash > 2.x, which disables the bash-completion package.
Here's diff output of a fix: --- /var/abs/extra/system/bash-completion/bash_completion.sh 2003-05-30 07:39:39.000000000 +0200 +++ /etc/profile.d/bash_completion.sh 2004-08-12 06:47:37.000000000 +0200 @@ -1,7 +1,7 @@ # bash-completion bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} -if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \ +if [ "$PS1" ] && [ \( $bmajor -eq 2 -a $bminor '>' 04 \) -o $bmajor -ge 3 ] \ && [ -f /etc/bash_completion ]; then # interactive shell # Source completion code . /etc/bash_completion |
This task depends upon
Closed by Aurelien Foret (aurelien.foret)
Monday, 16 August 2004, 19:02 GMT
Reason for closing: Fixed
Monday, 16 August 2004, 19:02 GMT
Reason for closing: Fixed
Comment by Aurelien Foret (aurelien.foret) -
Monday, 16 August 2004, 19:02 GMT
Fixed in package bash-completion 20040711-2.