PowerShell / PowerShell/PowerShell
When entering the WSL, the path is displayed incorrectly
Open
Nobody has claimed this yet.
Needs-Triage
WG-Engine
WG-NeedsReview
- Dominant language
- C#
- Stars
- 55.5k
- Forks
- 8.5k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 88
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
I am entering the wsl directory(\\wsl.localhost\Ubuntu-22.04\root).
I think it should be:
PS \\wsl.localhost\Ubuntu-22.04\root>
But this is actually happening:
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Ubuntu-22.04\root>
Expected behavior
PS \\wsl.localhost\Ubuntu-22.04\root>
Actual behavior
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Ubuntu-22.04\root>
Error details
PS Microsoft.PowerShell.Core\FileSystem::\\wsl.localhost\Ubuntu-22.04\root>
Environment data
Name Value
---- -----
PSVersion 7.5.1
PSEdition Core
GitCommitId 7.5.1
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by entering the WSL path \wsl.localhost\Ubuntu-22.04\root in PowerShell 7.5.1 on Windows 10. Compare the actual and expected prompt output, then trace the prompt's path display behavior; done means the provider-qualified prefix is no longer shown for this WSL path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100