bash sh invokation name yes interactive? no yes interactive? no yes no no yes no --login login? --login yes --posix login? yes ${BASH_ENV} ${ENV} yes no --noprofile yes yes ${ENV} --norc no no --noprofile yes no norcfile RCFILE /etc/profile /etc/profile also when input from ~/.bashrc RCFILE network connection ~/.profile ~/.bash_profile ~/.bash_login ? no yes yes ~/.bash_profile ~/.bash_login ~/.profile user session] ~/.bash_logout