You are not logged in.
Pages: 1
I have a fresh Arch install on a remote server, and when I SSH in I get a weird shell. ~/.bashrc is not read, and I seem to have the defaults from /etc/bash.bashrc.
/etc/passwd contains /bin/bash for my account, which is not a symlink,
`echo $0` returns "-bash" which I have never heard of?
If I run bash myself, everything goes back to normal (~/.bashrc read and such), and echo $0 now responds with the expected "bash".
Any idea whats going on here?
Last edited by ~lynks (2015-03-21 16:26:48)
Offline
Do you have a ~/.bash_profile file? You'll need to copy it from /etc/skel if you don't...
cp /etc/skel/.bash_profile ~
Offline
Ha, oh wow that was easy. Thanks a lot
I had assumed that ~/.bashrc was loaded from /etc/bash.bash_profile. Any idea why I got "-bash" as argv[0]?
Offline
No problem.
I've come across this issue a couple of times with virtual servers, it doesn't seem to happen to me on real installations.
Don't forget to mark this thread [SOLVED] if your problem's fixed.
slithery
Offline
It's the login shell.
http://unix.stackexchange.com/questions … ogin-shell
Offline
It's the login shell.
http://unix.stackexchange.com/questions … ogin-shell
I had never heard of this, thanks for the help!
Offline
Pages: 1