You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows filesystem cannot resolve symlinks in WSL #4867
C:\>type "\\wsl$\ubuntu\tmp\foo"
file contents
C:\>type "\\wsl$\ubuntu\tmp\bar"
The name of the file cannot be resolved by the system.
Version info
From a WSL shell:
$> cat /proc/version
Linux version 4.4.0-18362-Microsoft ([email protected]) (gcc version 5.4.0 (GCC) ) #476-Microsoft Fri Nov 01 16:53:00 PST 2019
$> cmd.exe /c ver
Microsoft Windows [Version 10.0.18362.592]
I've marked this as a "bug", but arguably it's a missing feature of wslpath. It seems reasonable that the -a flag should attempt to dereference symlinks.
Alright, chasing issue links it seems the behavior didn't change until 18917 ref #3999 (message). /dupe #4078, I'll fix up the fixed-in tag over there. Thanks for the submission and the version clarification.
Activity
BatmanAoD commentedon Feb 3, 2020
I've marked this as a "bug", but arguably it's a missing feature of
wslpath. It seems reasonable that the-aflag should attempt to dereference symlinks.BatmanAoD commentedon Feb 3, 2020
For now, creating a workaround in the WSL shell is pretty easy, using GNU
readlink -fto dereference symlinks before passing file paths towslpath.therealkenc commentedon Feb 3, 2020
No version given. Ref #4078.
BatmanAoD commentedon Feb 3, 2020
Sorry, I knew I forgot something! I've updated the top-level comment.
therealkenc commentedon Feb 3, 2020
Alright, chasing issue links it seems the behavior didn't change until 18917 ref #3999 (message). /dupe #4078, I'll fix up the fixed-in tag over there. Thanks for the submission and the version clarification.