Nope, IIRC, it has “echo frog” normally ![]()
I would like ‘implement’ this . Please tell me how to show this in color . i.e. how to output monkey in color when adding echo monkey to my /root/.bashrc
Should I start another thread 
Next time you test something with that file, change the echo line into this:
echo /root/.bashrc: monkey
Would be easier to find lost monkeys… 
An interesting question is does pacman need to source root’s .bashrc whenever it runs a post-install script.
Well, I don’t even have root’s .bashrc (although I do use bash as the root user’s shell, zsh for my user account) so it doesn’t source anything for me. But if I had it, it would say “echo frog” 
I think this is down to sudo - I suspect if it’s running as a login shell then it will source root’s dotfiles?
But when I run sudo interactively it doesn’t happen.
Differences between bash and zsh?
Also, usually interactive shells are configured differently than batch shells.
Need to look at man bash and man zsh about how the system starts them.
No, it makes no difference which shell I use. I even tried sh.
For some reason pacman sources root’s .bashrc while it is running. It much invoke new bash shells to run install scripts in a way that causes .bashrc to be sourced.