-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Remove PSNativePSPathResolution experimental feature
#17670
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
Remove PSNativePSPathResolution experimental feature
#17670
Conversation
|
Bummer, I'll miss being able to do |
|
@rkeithhill but if you Or just create a |
|
Tab will have to do. :-) |
It does that now but is that the desired behavior? There's an open issue #5350 about stopping tab completion from replacing variables and ~ because it makes scripts less portable. |
|
I'm closing this PR for now. Due to some work for a different Experimental Feature PSNativeCommandArgumentPassing, the actual extent seems to be available within the NativeCommandProcessor thus it can determine if single or double quotes, so let me see if I can fix the original reported issues instead of removing this feature. |
|
Actually, rereading #13644 it's not really a solvable problem if the args is passed as variables since the context of single vs double is lost already. |
JamesWTruher
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks fine, my own concern is that we don't have a negative test to ensure we've removed the behavior we want.
test/powershell/Language/Scripting/NativeExecution/NativeCommandArguments.Tests.ps1
Show resolved
Hide resolved
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
|
🎉 Handy links: |
PR Summary
The
PSNativePSPathResolutionexperimental feature hit a roadblock where single quotes should treat the string as literal. However, the NativeCommandProcessor no longer has this context and only the string value. It's not worth the effort to try to pass this context through as the use cases for this feature are minimal.PR Context
Fix #13644
Fix #13640
Fix #17278
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).