On 22/03/2017 14:57, Alan McKinnon wrote: > On 22/03/2017 14:34, Hogren wrote: >> Hello, >> >> Anybody knows why ~/.bashrc is not running on the first Bash opening ? >> >> >> Steps to reproduce my problem: >> >> - I boot up my machine (systemd) >> >> - I have the login prompt >> >> - I enter my login, then my password >> >> - I am in Bash but ~/.bashrc is not sourced. Aliases, $PATH, and other >> are not updated. >> >> - I enter the command "bash" to enter in a subshell. Now I have my new >> aliases, $PATH, etc. The ~/.bashrc is sourced. >> >> >> >> I didn't find the good conf file. > > man bash, section INVOCATION. > > Study it and study it well. bash does not do with it's startup files > what you probably assume it does. > > Read it, read it again, read it three times. Read and understand what > is actually there. > > I already read the man pages in the past, and even the Advanced Bash Scripting Guide (very good free book). I just not remembered a thing like that.
I didn't read it a second, and a third time ^^. That was my error :) Bye Hogren