The three files are read in this order?
.bash_profile .profile .bashrc
This is not happening when I first open a terminal.
I have trace statements in the files appending to the file init.log. Please take a look at the following. It begins after opening a terminal. I have placed a comment to show where the log picks up after the su command.
stephen@debian:~$ cat init.log reading .bashrc done reading .bashrc stephen@debian:~$ su - stephen Password: stephen@debian:~$ cat init.log reading .bashrc done reading .bashrc # # after su # reading .bash_profile reading .profile reading .bashrc done reading .bashrc done reading .profile done reading .bash_profile stephen@debian:~$
So the su - login triggers the expected sequence however the initial login reads only the bashrc. This cannot be correct. Can someone explain under what conditions this would occur. I could modify the bashrc and profile files so that the initial read includes all expected files but I would rather get to the root of the problem and fix it there.