On 16:11 Fri 25 Mar , Harry Putnam wrote: > On a root login and although root's shell is bash, the .bashrc file I > created is not sourced. > > Is this a local config problem or a default system setting somewhere. > > Far as I know, when using bash it is supposed to look for > .bash_profile/profile (in that order) and then .bashrc when invoked.
Bash sources /etc/profile, then either ~/.bash_profile, ~/.bash_login, or ~/.profile, in that order. In order for ~/.bashrc to be sourced, you need to do it from one of these files with a line like this: [ -f ~/.bashrc ] && . ~/.bashrc That's for a login shell anyway. See the bash man page or info pages for more. HTH. Bill -- [email protected] mailing list
