> By "standard", I merely meant that ANY login shell that I know of
> reads $HOME/.profile so that it's NOT shell specific.
Now, before I get another flame back, let me point out that YOU ARE RIGHT,
just in a limited scope that I hope to expand upon. I'm trying to point
out where your statements could be wrong in at least one login shell that
you "know of" (bash). I'm just being pedantic here but I'm doing so in
the hopes that correct and complete information leads to better
understanding and knowlege.
bash itself only reads $HOME/.profile under certain circumstances (it has
to be the only one of $HOME/.bash_profile, $HOME/.bash_login, and
$HOME/.profile that exists).
sh (or bash called as sh), ash, and ksh do all read $HOME/.profile if
they're login shells.
csh and family (tcsh), and zsh don't and in the case of csh probably can't
parse it.
The original poster was asking where does his shell get its paths. On
Linux (any Linux) it is correct to say that they get it from login, but it
can be modified or completely replaced anywhere along the way by other
files which the shell sources on startup. To find those files the best
place to look is the man page for the shell. If we assume bash, then the
manpage says (in part):
INVOCATION
[...]
Login shells:
On login (subject to the -noprofile option):
if /etc/profile exists, source it.
if ~/.bash_profile exists, source it,
else if ~/.bash_login exists, source it,
else if ~/.profile exists, source it.
Anything that _those_ files source can also make changes to the PATH, look
for code like this:
for i in /etc/profile.d/*.sh ; do
if [ -x $i ]; then
. $i
fi
done
which means everything in /etc/profile.d/ with an ending of .sh is also
getting sourced, and could also affect the final PATH.
> Lastly, my name is not "Jacko", I'm sure Jacko doesn't want my
> flames, and I'm not smoking crack.
I'm very sure that I never addressed you thus.
_____________________ _ _ _________________________
Michael Rice |_| Collective |_| http://www.colltech.com
[EMAIL PROTECTED] |_ Technologies _| 8007598888/8019292 pager
Consultant [] [] "The Power Of Many Minds"
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]