I have a path I want to use as a home directory in WSL, but it's also path that has spaces in it.
I've tried escaping the spaces with slashes, and I've tried using single and double quotes with just spaces in the file, but it sets me at the root directory, instead of my home directory, it seems I cannot specify a path with spaces in it within /etc/passwd
.
Is there some other way to make this work?
source ~/.bashrc
manually, even though I have it in my present~
. – leeand00 Sep 18 '19 at 13:41~
appropriately, though I haven't tested it. Do you have a file that's explicitly sourcing$HOME/.bashrc
without quoting$HOME
? – Jeff Schaller Sep 18 '19 at 13:42.bash_profile
? but my$HOME
variable doesn't appear to contain single or double quotes or escape characters. Maybe I need to ask another question... – leeand00 Sep 18 '19 at 13:53source $HOME/.bashrc
, when it should besource "$HOME"/.bashrc
. Perhaps it's worth a separate question with the steps to reproduce it. – Jeff Schaller Sep 18 '19 at 13:54"$HOME"
. Technically, having spaces in a homedir name is possible. Practically, it will cause hassles forever, for yourself and anyone else who has to deal with it.. – cas Sep 19 '19 at 03:45