QUOTE(louigi600 @ Aug 11 2006, 10:24 PM)
If bash is executed without the "--noprofile" option it looks by default for profiles in: /etc/profile ~/.profile ~/.bash_profile.
I have figured out that ~/.profile does get visited when my login bash starts up. However I am having problems exporting a revised PATH from ~/.profile. I can change PATH within .profile and document that change (by putting "echo $PATH > fileA" within .profile). However this change is not persistent once I am in my login environment. The PATH determined in /etc/profile is the one that shows up.
I understand that the fix is to do what I want in /etc/profile. But I am using my Z to learn linux and would like to figure this one out. (Perhaps this question belongs on a more generalized linux forum, not oesf.) I appreciate any explanations anyone is willing to give.
Edit: I'm figuring this out. When I start my login shell both /etc/profile and ~/.profile are checked, in that order. Then when I 'startx' and 'aterm', /etc/profile is run again, but not ~/.profile.