Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148812 - app-shells/bash: redundancy in bashrc and (dot)bashrc
Summary: app-shells/bash: redundancy in bashrc and (dot)bashrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 10:17 UTC by srrijkers
Modified: 2006-12-29 17:50 UTC (History)
1 user (show)

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 srrijkers 2006-09-23 10:17:35 UTC
There seems to be a fair bit of redundancy in /etc/skel/.bashrc. Since /etc/bash/bashrc gets sourced directly for 'regular' shells[1] and indirectly for login shells through /etc/profile some parts of /etc/skel/.bashrc become redundant. For instance, ls and grep get aliased twice. IMO this situation could use some cleaning: if we are using a global bashrc, why not move the contents of /etc/skel/.bashrc there? For now we have a situation in which most settings are made in /etc/bash/bashrc but support for ~/.dir_colors and the setting of x terminals' titles is only present in /etc/skel/.bashrc.

[1] As a side note, this behaviour could prehaps be better documented. Afaik, only /etc/profile hints at it.
Comment 1 Richard Scott 2006-10-17 03:00:11 UTC
While your in there, can I draw your attention to this bug:

http://bugs.gentoo.org/show_bug.cgi?id=151575

I'm having a problem setting up a global path for non-interactive shells that are using subversion. I'd prefer to do a global path rather than set each users .bashrc file as there are oooodles of them ;-)

There is a possible fix on this bug report too :-)
Comment 2 SpanKY gentoo-dev 2006-12-29 17:50:06 UTC
fixed in cvs, cheers