initialization files run multiple times
I've searched for a couple of hours on the Internet, but can't seem to find the answer to this... I'm running SUSE 9.2 (first ever Linux system), and am far enough along that I want to customize a few things: alter the path for individual users, start a couple of applications on login, etc, etc.
When a user logs into the system, two personal initialization files are called: .bashrc and .profile. This is no surprise. But neither .bash_profile nor .bash_login seems to be called. At least, if I modify PATH in these files, the modifications never take effect.
My problem is this: .bashrc is called three times, and .profile is called twice. This means that whatever initialization I put into these files is repeated. For aliases and the like, this doesn't matter. But for PATH, starting apps, and other things, it matters a lot.
Two possible solutions, but I don't know how to do either:
- prevent multiple invocations of these files
- find some other file (bash_profile, bash_login) that is only called once. But - as mentioned above - these currently seem *never* to be called.
Any help appreciated...