Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make wslpath to string #29

Merged
merged 1 commit into from
May 25, 2021
Merged

Make wslpath to string #29

merged 1 commit into from
May 25, 2021

Conversation

moxwel
Copy link
Contributor

@moxwel moxwel commented Mar 25, 2021

This PR fixes #28


return runWslCommand(`wslpath -w ${p}`, distro);

I think the problem was that when there's a folder with spaces, the argument of the wslpath command gets "separated" and therefore, gets an error because there's "more" arguments.

Putting simple quotation marks makes the entire path ${p} literal, and therefore, if the path contain a folder with spaces in it, it don't get "separated" from the argument.

Works for me at least.

@moxwel moxwel changed the title Fix #28 Make wslpath to string May 18, 2021
@Tyriar Tyriar merged commit e665917 into Tyriar:master May 25, 2021
@Tyriar
Copy link
Owner

Tyriar commented May 25, 2021

Released as 0.6.1, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot open Windows Terminal from WSL when the folder name has spaces
2 participants