According to Bryan Scaringe: While burning my CPU.
> 
> This one's driving me nuts.
> there are 4 files sourced when I log in...
>       /etc/profile
>       ~/.profile
>       ~/.bash_profile
>       one other, I can't remember.  Mabye /etc/bashrc or /etc/bash_profile
> 
> Anyway, the first to be executed is /etc/profile.
> However, if I put "echo $PATH" at the beginning of this file,
> there is already a PATH in place which looks something like:
> 
>           /usr/sbin:/usr/bin:/usr/X11R6/bin
> 
> The rest of my scrips just append to this list.
> So my question is:
> Where is my PATH originally being set?  /etc/profile
> is supposed to be th first script executed for a login
> session.  However there is already a $PATH in place by
> the time I get there!

In the first script of the trien, on a Redhat system thats normaly
/etc/rc.d/rc.sysinit
Slackware has it in /etc/rc.d/rc.S

There has to be a path enviroment for the boot scripts to be able to do
there job, thats why you see a $PATH at the start of /etc/profile.

> 
> 
> Bryan Scaringe
> 


-- 
Regards Richard.
[EMAIL PROTECTED]

Reply via email to