-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Since 7.4.0, Group-Object cannot group strings containing curly braces #20711
Labels
In-PR
Indicates that a PR is out for the issue
Comments
cschneegans
added
the
Needs-Triage
The issue is new and needs to be triaged by a work group.
label
Nov 17, 2023
mawosoft
added a commit
to mawosoft/PowerShell
that referenced
this issue
Nov 21, 2023
Fixes regression from PowerShell#20608 which mixed up use of `StringBuilder.AppendFormat` and interpolated strings, thereby passing the actual value to be formatted as the format string. Fixes PowerShell#20711.
22 tasks
microsoft-github-policy-service
bot
added
the
In-PR
Indicates that a PR is out for the issue
label
Nov 21, 2023
microsoft-github-policy-service
bot
removed
the
Needs-Triage
The issue is new and needs to be triaged by a work group.
label
Nov 30, 2023
Contributor
📣 Hey @christoph-schneegans, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://forms.office.com/r/P926k48jRJ |
5 tasks
We'll be able to test the fix in the first 7.4.1 preview, correct? |
@sba923 Yes. And it is already in daily build (link is on main page). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Steps to reproduce
Since 7.4.0, it appears that the
Group-Object
cmdlet tries to interpret its string input as .NET format strings.If a string contains curly braces (U+007B and U+007D), the
Group-Object
cmdlet throws exceptions associated with the[string]::Format
method or the-f
operator.Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: