I recently: Specified a home directory path for a user in /etc/passwd with spaces in it? but now my .bashrc
doesn't source properly when I open a Ubuntu 16.04 LTS WSL window, so I have to source
it manually...which works with source ~/.bashrc
, but curiously does not work with source $HOME/.bashrc
, but oddly does work with source "$HOME"/.bashrc
.
So Jeff on the previous question thought that maybe the issue is that something else is sourcing it without the quotes around it.
In fact a similar issue caused me to fork git hub project in which a similar error was occurring; I attributed it to be because I was using mingw64 / git-bash for Windows, but that wasn't the issue at all because now it's occurring in WSL...er at least I think that's the case...
$HOME
unless I'm using.bashrc
to do that. – leeand00 Sep 18 '19 at 18:48source $HOME/.bashrc
which failed. Your actual question is centered around whatever's calling it that way. – Jeff Schaller Sep 18 '19 at 18:50/etc/passwd
as at one point I tried to set the user's login shell totmux
; the one that hastmux
running when I run$-
gives mesmi
. There are two other ones which don't appear to have tmux running and the one gives mehimBH
and the other one hasvim
running (withouttmux
) and that one readshBc
when I run$-
– leeand00 Sep 18 '19 at 20:05himBH
when I run$-
– leeand00 Sep 18 '19 at 20:06$-
doesn't show whether bash is a login shell. Check your.bash_profile
or.profile
anyway. – Gilles 'SO- stop being evil' Sep 18 '19 at 20:10