Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257402 - app-shells/bash-3.2_p39: /etc/bash/bashrc is sourced twice
Summary: app-shells/bash-3.2_p39: /etc/bash/bashrc is sourced twice
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
Depends on:
Reported: 2009-02-02 17:16 UTC by Toralf Förster
Modified: 2009-02-03 17:00 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
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

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