Closed unlimitedsola closed 6 years ago
Example:
➜ ~ wslpath "C:\Users\loli"
/mnt/c/Users/loli
➜ ~ wslpath "C:\Windows\System32"
/mnt/c/Windows/System32
➜ ~
but wslpath
throw an exception when the parameter is not a path, for example:
git clone git@github.com:hangxingliu/wslgit.git "C:\Projects\wslgit"
and it hard to replace linux path to windows path in stdout of git
Similar issue: https://github.com/andy-5/wslgit/issues/12
wslpath
will give non-zero return code if it failed to transform the input path, maybe we can leverage on this to test against each argument.
wslpath
is a new tool you can use to convert paths between Windows and Linux. Runwslpath
in a WSL environment.The options are: