Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 336568 - /etc/bash/bashrc need /etc/profile.d/*.sh
Summary: /etc/bash/bashrc need /etc/profile.d/*.sh
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-09 08:35 UTC by coderoar
Modified: 2010-09-14 14:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description coderoar 2010-09-09 08:35:36 UTC
Now /etc/profile.d has bash-completion.sh and java-config-2.sh, and only /etc/profile sources /etc/profile.d/*.sh. So that non-login shells can't get bash completion and java environment variables.

The condition is serious when I enter a shell with 'sudo -s', which means that I must work without bash completion.

My suggestion is to let /etc/bash/bashrc source /etc/profile.d/*.sh. Further, since /etc/profile sources /etc/bash/bashrc, /etc/profile needn't /etc/profile.d/*.sh any more if /etc/bash/bashrc instead of it.
Comment 1 SpanKY gentoo-dev 2010-09-14 14:02:39 UTC
no, bashrc files are for *non-login* shells.  profile.d are for *login* shells.  login shells source non-login files, but never the other way around.