Mailinglist Archive: opensuse (2886 mails)

< Previous Next >
Re: [SLE] problem with .bashrc
On Friday 01 February 2002 23:16, you wrote:
> I've noticed this behavior myself. I just moved my rc stuff to
> .bash_login and I've been fine since. It would be nice to know why
> .bashrc gets execed twice though.
>
> Anyone know?

Jay:

I wrote to my local UNIX group and they suspect (they are not sure) that
.bashrc is being run twice. They wrote:

++++++++++++++++++++++++++
I assume that the paths are getting echoed twice also? If so, your .bashrc
is running twice for some reason. Perhaps once from /etc/profile and once
from ~/.profile or ~/.bash_profile.
++++++++++++++++++++++++++

Which is indeed the case. How could that happen? Why would .bashrc be run
twice?

< Previous Next >
References