1
If I call
bash --login
Then ~/.bash_profile is called. This seems as it should.
I also have /bin/sh symlinked to bash
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Jun 22 2017 /bin/sh -> bash
Calling
/bin/sh --login
Does not result in ~/.bash_profile being sourced. Instead ~/.profile gets sourced which may not include relevant bash specific things.
Is this how It should be? Is there a way to ensure ~/.bash_profile is called?
I'm running on Centos 6, with Bash 4.1.