This is the default .bashrc on Fedora:
[root@noori ~]# cat /etc/skel/.bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
I have three questions on this:
- Why do the global definitions run in .bashrc? Shouldn't bash source /etc/bashrc and only then ~/.bashrc, or at least run /etc/bashrc if .bashrc wasn't defined?
- Being sourced, why are global definitions sourced after the user specific aliases and functions? That should be otherwise, because, in this setup, if I, for instance, setup an umask here, it is going to be overriden anyway bt the global bashrc...
- What are Fedora people thinking when they package stuff like this?