Hi Christian,

Christian Lohmaier schrieb am 20.05.2026 um 11:30:
[..]
Interesting, so my assumption was wrong and it gets the path from the
registry, but for some reason on your system (and the system from the
user on IRC) there's a difference in the native part - the unix part
retaining the trailing slash means the value from registry does still
contain the trailing slash, but that there's a difference in the
PathFormat function - for the wsl-as-helper case it runs  wslpath -m
on the unix-style path - so as a final confirmation step, could you
please try

 (from within the wsl-distro)

Ubuntu for me


wslpath -m /mnt/c/Users
C:/Users

and
wslpath -m /mnt/c/Users/

C:/Users


The expectation/what is the case on my system is that the first one
returns C:/Users and the second one C:/Users/ – in other words it
retains the slash. If there's a difference, then also please the
output of wsl.exe --version

WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26200.8457

If I run it in GitBash, I get

$ wsl wslpath -m /mnt/c/Users
C/Program Files/Git/mnt/c/Users

$ wsl wslpath -m /mnt/c/Users/
C/Program Files/Git/mnt/c/Users/


I use autogen.sh in the form
$ wsl ./autogen.sh


Kind regards,
Regina

Reply via email to