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

Bug 257402

Summary: app-shells/bash-3.2_p39: /etc/bash/bashrc is sourced twice
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: VERIFIED NEEDINFO    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2009-02-02 17:16:02 UTC
Run sth. like "echo date >> /etc/bash/bashrc" to see the effect.


Reproducible: Always
Comment 1 SpanKY gentoo-dev 2009-02-03 05:28:50 UTC
no real info and simple test case works fine for me

post all relevant info into the bug (including `emerge --info` like the reporting page said), as well as attach all of the files bash is sourcing (so your profile and rc files)
Comment 2 Toralf Förster gentoo-dev 2009-02-03 11:01:47 UTC
Oops,

I had this line 

source /etc/profile

in my .bashrc, probably not needed ?
Comment 3 SpanKY gentoo-dev 2009-02-03 16:53:59 UTC
a login shell gets the env from both login and rc scripts.  an rc shell gets the env from just rc scripts.  that is how the installed bash scripts are written.

generally, since a login shell is always the parent (at some point) of an rc shell, there should be no need to reload the login env.
Comment 4 Toralf Förster gentoo-dev 2009-02-03 17:00:22 UTC
yep -thx