mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

Quote your vars #41

Closed AdnoC closed 6 years ago

AdnoC commented 6 years ago

When trying to run cmdtool I was getting this weird error:

/mnt/b/Program Files (x86)/wsl-terminal/cmdtool: line 5: cd: /mnt/b
.
(x86)/wsl-terminal: No such file or directory

Quoting the usage of the path to the script fixed it.

Turns out there were several places in cmdtool where you use variables that might have spaces without quoting them.