[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash revisited

On Wed, Dec 18, 2002 at 02:51:22PM -0500, Bruce Park wrote:
> Hello users,
> I posted a message regarding bash and what files it executes. Some replied 
> that I should read the invocation section of the bash man page. I've done 
> just that and while some questions are answered, others are not.
> As far as I understand this, there are two ways of invoking bash.
> 1. interactive login shell or non-interactive with '--login' option
> This will execute /etc/profile -> ~/.bash_profile -> ~/.bash_login -> 
> ~/.profile
> 2. non-interactive login shell
> This will execute ~/.bashrc
> Now according to these rules and by using 'echo' statements in some files, 
> it was obvious that I was using the non-interactive login shell. My .bashrc 
> file does NOT contain anything that sets up a new PATH. So how is the PATH 
> env set? Is KDM somehow executing something that I'm not seeing?

Before BASH is started, init process set path, then PAM does some for

Oh, you are on X with KDE.  Hmm.... the KDM also may do something after
init too.  I  do not know how much KDM honors PAM.

Good luck.
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
        Osamu Aoki <osamu@debian.org>   Cupertino CA USA, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  "Our Priorities are Our Users and Free Software" --- Social Contract

Reply to: