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

Bug 139740

Summary: baselayout-1.12.1 does not configure app-shells/bash-completion
Product: Gentoo Linux Reporter: Nicolas Boichat <nicolas>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: VERIFIED INVALID    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nicolas Boichat 2006-07-09 02:24:07 UTC
app-shells/bash-completion creates this file: /etc/profile.d/bash-completion (without .sh in the end), to configure bash completion.

However, this file is never sourced, as in /etc/profile you have this code:
for sh in /etc/profile.d/*.sh ; do
	if [ -r "$sh" ] ; then
		. "$sh"
	fi
done

(so only *.sh files are sourced)

Two possibilities to fix this bug:
 - Either modify /etc/profile:
-for sh in /etc/profile.d/*.sh ; do
+for sh in /etc/profile.d/* ; do

 - Or, probably easier, rename /etc/profile.d/bash-completion to /etc/profile.d/bash-completion.sh .
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-09 02:35:04 UTC
Kindly read the postinstall info that's provided by bash-completion.
Comment 2 Nicolas Boichat 2006-07-09 02:54:29 UTC
sorry...