[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: vairable changing in RH7.1 (was PATH changing in RH7.1)
- From: "John P. Verel" <jverel home com>
- To: redhat-list redhat com
- Subject: Re: vairable changing in RH7.1 (was PATH changing in RH7.1)
- Date: Sat, 1 Sep 2001 21:09:23 -0400
I think this is right, at least for Red Hat, per Bash Reference
Manual, 2.5, and some interpolation.
There are two types of interactive shells, login and non-login. What
one sees in a gnome terminali(for example), as default configured, in a
non-login interactive shell.
Both types of shells first source /etc/profile, the system wide
defaults. In Red Hat, this does a bunch of things: sets path, runs the
scripts in /etc/profile.d. and so on. (These scripts are what create
the default aliases.)
A non-login shell then sources ~/.bashrc. In Red Hat, this file checks for
the existence of /etc/bashrc. If found it too is sourced.
A login shell, after sourcing /etc/profile, looks for ~/.bash_profile,
~/.bash_login and ~/.profile, in that order.
This is not quite in line with the Bash manual. Specifically, Section
6.2 on Startup files would have one believe that /etc/profile is not
accessed by a non-login shell. However, the Red Hat comments in the
several of these files suggest that /etc/profile is always
sourced....else, how would I have fixed the PATH problem that started
this thread.
I think this is correct. Is it?
John
On 09/01/01, 03:06:39PM -0600, Jason W Elliot wrote:
> I'm still curious about when files are sourced. It seems to be related to
> my question about the SESSION_MANAGER variable. I fished around in my
> ~/.gnome directory and didn't find much.
--
John P. Verel
Connecticut? You bettor believe!
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]