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

Re: global environment variables?



On Sun, Dec 02, 2001 at 03:27:07PM -0800, Thomas Zimmerman wrote:
...
| And I was under the impression that is what /etc/profile is for. Every shell
| should source /etc/profile. Bash also sources /etc/bashrc and if a user,
| ~/.bashrc and ~/.profile. Am I completely wrong here? This seems to be a
| sane setup. 

This isn't quite what happens.  bash read ~/.bashrc for non-login
shells and ~/.bash_profile for login shells.  Thats as far as the
automatic reading goes.  Typically your .bashrc or .bash_profile will
source the system-wide files in /etc, but they don't have to.  Also,
on Debian the system-wide bashrc file is /etc/bash.bashrc.

-D

-- 

Trust in the Lord with all your heart and lean not on your own
understanding; in all your ways acknowledge Him, and He will make your
paths straight.

        Proverbs 3:5-6



Reply to: