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
Handling of QUOTATION MARK characters appears to have changed in 7.3.0 #18540
Comments
Have noticed this as well; it broke some of our CI scripts that call out to all sorts of executables. Have also experienced slightly different behaviors between windows and Linux depending on the target application (for example ef migration bundles) and sometimes different if I splat arguments. So far only when invoking applications and not with commandlets I intend on opening issues in a few repos that offer argument completer scripts (Flux, helm, kustomize) as their powershell variants are all broken since 7.3 (with a simple fix)... Will link here once I do. I checked release notes and didn't see mention of this behavior. |
v7.3 introduced a breaking change with respect to the - previously fundamentally broken - handling of (embedded) To make the previous workarounds that build on the broken behavior work, you must (temporarily) set For a summary of the consequences of the breaking change, see this comment. |
This issue has been marked as answered and has not had any activity for 1 day. It has been closed for housekeeping purposes. |
This comment was marked as resolved.
This comment was marked as resolved.
@mklement0, is it possible to write a script that will run unchanged on 7.3+ and 7.2- without embedding $PSNativeCommandArgumentPassing`? Is that the only way? Trying to install 7.2.7 fails because. "A newer version of PowerShell is already installed" How can I install the earlier version in order to test? |
@Liturgist, unfortunately, I don't think that's possible: if you want existing code to run without (other) modifications on both 7.2- / Windows PowerShell and 7.3+, you'll need to deal with Going forward and/or if modifying old code is possible, for cross-edition / cross-version code you could consider using the |
@Liturgist, as for installing an older version alongside the most recent one: I haven't personally tried, but it looks like installing via a specific version's |
Prerequisites
Steps to reproduce
The following statement was working under 7.2.
& svn.exe co
"https://svnrepo.myco.com/db/trunk/$_`"`GRAVE ACCENT characters not showing up correctly. Sorry for the picture.
After installing 7.3.0, it produces:
svn: E170000: Illegal repository URL '%22https://svnrepo.myco.com/db/trunk/Scripts%22
Expected behavior
Working copy is checked out.
Actual behavior
Working copy is not checked out.
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: