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#2394 - /etc/profile/bash-completion.sh
Attached to Project:
Arch Linux
Opened by Angelo Theodorou (encelo) - Thursday, 17 March 2005, 04:56 GMT
Last edited by Aurelien Foret (aurelien.foret) - Saturday, 25 March 2006, 19:32 GMT
Opened by Angelo Theodorou (encelo) - Thursday, 17 March 2005, 04:56 GMT
Last edited by Aurelien Foret (aurelien.foret) - Saturday, 25 March 2006, 19:32 GMT
|
DetailsIt has to be a problem in the condition, because the bash-completion script is not included automatically.
|
This task depends upon
bash_completion, when sourced by /etc/profile, works for interactive login shells (e.g. console) but not interactive non-logins shells (e.g. xterm, by default)
The correct way to do this is source it in .bashrc
---
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
---
Also the bash version tests are superfluous because all this is taken care of by the bash_completion program (and ArchLinux has an uptodate bash anyway ;-).
But I agree with Benny that bash_completion should be sourced from ~/.bashrc not from /etc/profile.d
It breaks the script if there's a space character in PS1 (default case in an Arch Linux setup)!!!
implemented in -4