[Gllug] .bash_profile & .bashrc
Andrew Black (li)
andrew-li at black1.org.uk
Tue Aug 31 08:43:39 UTC 2004
Thanks Stuart Pip and Doug
> 1) login shell
> /etc/profile
> ~/.bash_profile
> ~/.bashrc : called from ~/.bash_profile (Mandrake may not do this)
> /etc/bashrc : called from ~/.bashrc (ditto)
> /etc/profile.d/* : run by a loop in /etc/profile
>
> 2) non-login shell
> ~/.bashrc
> /etc/bashrc : as above
> /etc/profile.d/* : run by a loop in /etc/bashrc
Yep - that summarises what is going on.
I hadnt appreciated the difference betwee login and non-login shells, and
why they need to be treated differently. These explanations have clarified
it.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list