Wayne Sallee wrote:
On 09/27/2015 09:37 AM, Wayne Sallee wrote:
There's also a bug in the book where the root bash profile, and bashrc
loop endlesly with each other. It gave me error when su to root, until
I fixed it.
|if [ -f "$HOME/.bashrc" ] ; then
source $HOME/.bashrc
fi|
it's ok for one to refer to the other, but creates an error when both
refer to each other.
The construct above is in ~/.bash_profile which is only called during
an initial login. It calls $HOME/.bashrc which in turn may call
/etc/bashrc. /etc/bashrc does not call any other script.
Note that the book never mentions root's startup scripts.
You customized a script and made a mistake.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page