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

\\wsl$\ path is case sensitive for 'wslpath -a' #7744

Closed
1 of 2 tasks
umairsair opened this issue Nov 23, 2021 · 2 comments
Closed
1 of 2 tasks

\\wsl$\ path is case sensitive for 'wslpath -a' #7744

umairsair opened this issue Nov 23, 2021 · 2 comments
Assignees

Comments

@umairsair
Copy link

umairsair commented Nov 23, 2021

Version

Microsoft Windows [Version 10.0.18363.1854]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

Linux version 5.10.60.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Wed Aug 25 23:20:18 UTC 2021

Distro Version

Debian GNU/Linux 11 (bullseye)

Other Software

No response

Repro Steps

wslpath -a expects wsl$ in lower case while windows allows any case of individual letters, like WSL, Wsl etc. If user simply copy paste the path from explorer and try to use it, it fails.

wslpath should support any casing of WSL$

Following works fine.

$ wslpath -a //wsl$/Debian/home
/home

Expected Behavior

$ wslpath -a //WSL$/Debian/home
/home
$ wslpath -a //Wsl$/Debian/home
/home

Actual Behavior

$ wslpath -a //WSL$/Debian/home
wslpath: //WSL$/Debian/home
$ wslpath -a //Wsl$/Debian/home
wslpath: //Wsl$/Debian/home

Diagnostic Logs

No response

@OneBlue OneBlue self-assigned this Nov 23, 2021
@benhillis benhillis self-assigned this Nov 29, 2021
@benhillis
Copy link
Member

Good call - we will go ahead and make this change.

@benhillis
Copy link
Member

Fixed in https://github.com/microsoft/WSL/releases/tag/0.51.0.

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

No branches or pull requests

3 participants