On Wed, Nov 19, 2003 at 02:25:33PM +1100, Andrew Cowie wrote: > A little email about .bashrc vs .bash_profile: > > On Tue, 2003-11-18 at 15:28, Andrew Bennetts wrote: > > The dash makes it a "login shell", which means it executes the bashrcs and > > whatnot specific to the root user, thus you'll get the environment you expect. > > Without wanting to be pedantic, I got this wrong enough times to offer a > minor clarification: > > A great way to figure out what your system is doing is to put > > echo "In ~andrew/.bashrc" 1>&2 > > As a line in your .bashrc, and similar lines in places like > .bash_profile, .profile, and if you're really stumped, /etc/profile, > .gnomerc and /etc/X11/gdm/gnomerc (but see warning [1] below!)
[snip] > The thing that surprised me was that, *I* thought I was "logging in", > but in this case, .bash_profile wasn't run, only .bashrc . This because Generally I've found it simpler and less hurtful upon my digestive track to simply hardlink .bash_profile, .bashrc, etc. Anand -- `` We are shaped by our thoughts, we become what we think. When the mind is pure, joy follows like a shadow that never leaves. '' -- Buddha, The Dhammapada -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug