-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Set-Location
does not work with some Win32 short paths
#21509
Comments
Root cause is probably the same as #17359. |
|
It's the exact same issue as in #17359. And i can repro this on my machine. |
@batzen this one is NOT the same issue as producing a private that removes the length check doesn't fix this issue |
But both setting |
Also, at least on my system, explorer.exe understands the path and expands it correctly. Not cmd.exe though, and from a quick trace in API Monitor, it does not even seem to call |
Unfortunately, my system (Microsoft Windows 10.0.22631) doesn't repro what you are experiencing making it not possible to find root cause or verify any change fixes your problem. |
Do you have short paths enabled on the partition you're testing on? (https://stackoverflow.com/questions/18479322/how-to-check-programatically-that-8-3-short-path-name-is-enabled-on-system)
|
Oops, apologies, I tested the reproduction code in the root of a drive and forgot to properly insert a directory separator in the path. I fixed it now, please try it again. |
This issue has been marked as external and has not had any activity for 1 day. It has been be closed for housekeeping purposes. |
📣 Hey @MatejKafka, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
Uh, bad bot. Still relevant, please reopen. |
Steps to reproduce
The issue may also happen with other provider cmdlets, did not check anything else for now.
Expected behavior
Actual behavior
Error details
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: