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...
$HOMEunless I'm using.bashrcto do that. – leeand00 Sep 18 '19 at 18:48source $HOME/.bashrcwhich failed. Your actual question is centered around whatever's calling it that way. – Jeff Schaller Sep 18 '19 at 18:50/etc/passwdas at one point I tried to set the user's login shell totmux; the one that hastmuxrunning when I run$-gives mesmi. There are two other ones which don't appear to have tmux running and the one gives mehimBHand the other one hasvimrunning (withouttmux) and that one readshBcwhen I run$-– leeand00 Sep 18 '19 at 20:05himBHwhen I run$-– leeand00 Sep 18 '19 at 20:06$-doesn't show whether bash is a login shell. Check your.bash_profileor.profileanyway. – Gilles 'SO- stop being evil' Sep 18 '19 at 20:10