moovweb / gvm

Go Version Manager
http://github.com/moovweb/gvm
MIT License
9.87k stars 520 forks source link

Don't break paths on space while fixing for rvm #476

Open TheGrayFrost opened 2 months ago

TheGrayFrost commented 2 months ago

I was running GVM in my WSL installation, which has many paths contains space like: /mnt/c/Program Files/Microsoft SQL Server/Client SDK..

When this script would run on startup, it would mess up these paths as it splits on both ":" and " "

In general, space is not a special char in bash paths, so we should not split on it. Seems to be a typo.