1
I logged in via ssh
to a remote Ubuntu-Machine.
By default I'm in a terminal called -bash
(note the hyphen).
This bash does not load/use my ~/.bashrc.
When entering bash
into the terminal, I get to a terminal, which also uses my .bashrc.
Now, what is the difference between -bash
and bash
.
Why am I logged in by default to the -bash
version.
I executed chsh -s /bin/bash
and restarted the machine already, which according to this post sets the default environment. That seems to fail.
And last but not least, if I can't change to the "normal" bash, how can I get -bash to use my .bashrc?
To illustrate my problem, here is the workflow showing console output:
user@machine:~$ echo $0
-bash
user@machine:~$ bash
~: echo $0
bash