laurent22 / wslpath

wslpath - Converts Unix and Windows format paths in WSL
MIT License
107 stars 8 forks source link

wslpath -w /mnt/c works differently than expected #6

Open matushorvath opened 6 years ago

matushorvath commented 6 years ago

When I run 'wslpath -w /mnt/c', it returns C:\WINDOWS\system32\c. I would expect it to return C:\ or something similar. Running wslpath with different paths works as expected.

$ wslpath -u c:\Documents /mnt/c/Documents $ wslpath -w /mnt/c/Documents C:\Documents $ wslpath -u c: /mnt/c $ wslpath -w /mnt/c C:\WINDOWS\system32\c $ wslpath -m /mnt/c C:/WINDOWS/system32/c