René's URL Explorer Experiment


Title: Add a parameter to `Out-File` and `Out-String` to bring back the previous behavior that got changed by #17455 · Issue #17509 · PowerShell/PowerShell · GitHub

Open Graph Title: Add a parameter to `Out-File` and `Out-String` to bring back the previous behavior that got changed by #17455 · Issue #17509 · PowerShell/PowerShell

X Title: Add a parameter to `Out-File` and `Out-String` to bring back the previous behavior that got changed by #17455 · Issue #17509 · PowerShell/PowerShell

Description: For reference: Issue: #17452 PR that fixed the issue: #17455 Context summary The previous behavior in 7.2.x is: Out-File and Out-String remove escape sequences from the passed-in strings when $PSStyle.OutputRendering is Host or PlainText...

Open Graph Description: For reference: Issue: #17452 PR that fixed the issue: #17455 Context summary The previous behavior in 7.2.x is: Out-File and Out-String remove escape sequences from the passed-in strings when $PSSt...

X Description: For reference: Issue: #17452 PR that fixed the issue: #17455 Context summary The previous behavior in 7.2.x is: Out-File and Out-String remove escape sequences from the passed-in strings when $PSSt...

Opengraph URL: https://github.com/PowerShell/PowerShell/issues/17509

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a parameter to `Out-File` and `Out-String` to bring back the previous behavior that got changed by #17455","articleBody":"For reference:\r\n- Issue: https://github.com/PowerShell/PowerShell/issues/17452\r\n- PR that fixed the issue: https://github.com/PowerShell/PowerShell/pull/17455\r\n\r\n### Context summary\r\n\r\nThe previous behavior in 7.2.x is: `Out-File` and `Out-String` remove escape sequences from the passed-in strings when `$PSStyle.OutputRendering` is `Host` or `PlainText`.\r\n\r\nThere are some problems with this behavior, especially when having `Host` to be the default value for `$PSStyle.OutputRendering`. See https://github.com/PowerShell/PowerShell/pull/17455#issuecomment-1147680515 for the details of those problems.\r\n\r\nTherefore, that behavior was changed by #17455 to be:\r\n- when the input object is pure string, these 2 cmdlets keep the string input unchanged regardless of the `RenderingOutput` setting\r\n- when the input object needs to have formatting views applied to it, these 2 cmdlets remove escape sequences from the formatting output strings based on the `RenderingOutput` setting, which is the same as the existing behavior.\r\n\r\n### Recommendation from PowerShell Committee\r\n\r\nThe committee reviewed #17455 and recommended to add a new parameter to `Out-String` and `Out-File` to keep the previous behavior. Quote the comments https://github.com/PowerShell/PowerShell/pull/17455#pullrequestreview-1000516051 and https://github.com/PowerShell/PowerShell/pull/17455#issuecomment-1150521455 below:\r\n\r\n> I think we should seriously consider adding a parameter to out-string and out-file which retains our current behavior. Perhaps a parameter `-AsPlainText` or some such will allow users to have the older behavior while we provide a safer default behavior.\r\n>\r\n> powershell-committee reviewed this, we would recommend adding a parameter to enable users to get back the previous behavior.\r\n> \r\n","author":{"url":"https://github.com/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2022-06-09T01:30:46Z","url":"https://github.com/PowerShell/PowerShell/issues/17509"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:68acdfae-0907-da39-4871-0ed6c9a55a6d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD228:350A6F:15C011:1DE39C:6AFD8EF9
html-safe-noncefc0fd50d9883f84a654ae0113042f46deac2e7c7c97c3fedec0484d2eda52d30
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjI4OjM1MEE2RjoxNUMwMTE6MURFMzlDOjZBRkQ4RUY5IiwidmlzaXRvcl9pZCI6IjQxOTkwNDQ2MTkxOTI2MDIzNjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf53881cc469e8f45b4a99c271a2098b28f7a87aba77b6379f733ce166283b555
hovercard-subject-tagissue:1265480534
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/17509/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aea5f64020c8facf00a674c2d9cf8e646878106d95360bb2bfb3a40a3354a8a4/PowerShell/PowerShell/issues/17509
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aea5f64020c8facf00a674c2d9cf8e646878106d95360bb2bfb3a40a3354a8a4/PowerShell/PowerShell/issues/17509
og:image:altFor reference: Issue: #17452 PR that fixed the issue: #17455 Context summary The previous behavior in 7.2.x is: Out-File and Out-String remove escape sequences from the passed-in strings when $PSSt...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedaxian-dbw
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
turbo-cache-controlno-preview
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/17509#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F17509
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F17509
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/issues/17509
Reloadhttps://github.com/PowerShell/PowerShell/issues/17509
Reloadhttps://github.com/PowerShell/PowerShell/issues/17509
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests366 (366)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17509
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17509
Add a parameter to Out-File and Out-String to bring back the previous behavior that got changed by #17455https://github.com/PowerShell/PowerShell/issues/17509#top
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issue-1265480534
Save pure string text to file with redirection or Out-File unexpectedly strip off VT sequences from the original text #17452https://github.com/PowerShell/PowerShell/issues/17452
Make Out-String and Out-File keep string input unchanged #17455https://github.com/PowerShell/PowerShell/pull/17455
#17455 (comment)https://github.com/PowerShell/PowerShell/pull/17455#issuecomment-1147680515
#17455https://github.com/PowerShell/PowerShell/pull/17455
#17455https://github.com/PowerShell/PowerShell/pull/17455
#17455 (review)https://github.com/PowerShell/PowerShell/pull/17455#pullrequestreview-1000516051
#17455 (comment)https://github.com/PowerShell/PowerShell/pull/17455#issuecomment-1150521455
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#event-6774082371
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1150602671
spoofing issuehttps://github.com/PowerShell/Announcements/issues/28
https://github.com/vexx32
Rain Sallow (/u/ta11ow) (vexx32)https://github.com/vexx32
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1150654796
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1150676475
Dongbo Wang (@daxian-dbw)https://github.com/daxian-dbw
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1150689733
https://github.com/jhoneill
James O'Neill (jhoneill)https://github.com/jhoneill
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1150949227
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1151350698
https://github.com/michaeltlombardi
Mikey Lombardi (He/Him) (michaeltlombardi)https://github.com/michaeltlombardi
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1151453978
Dongbo Wang (@daxian-dbw)https://github.com/daxian-dbw
MicrosoftDocs/PowerShell-Docs#8892https://github.com/MicrosoftDocs/PowerShell-Docs/issues/8892
Sean Wheeler (@sdwheeler)https://github.com/sdwheeler
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1151473505
Mikey Lombardi (He/Him) (@michaeltlombardi)https://github.com/michaeltlombardi
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_ansi_terminals?view=powershell-7.2https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_ansi_terminals?view=powershell-7.2
https://camo.githubusercontent.com/a3e093cc60b98d02a0a10f87067dafc4b333b0d3743a37752bacd132272563c1/68747470733a2f2f646f63732e6d6963726f736f66742e636f6d2f6d656469612f6c6f676f732f6c6f676f2d706f7765727368656c6c2d736f6369616c2e706e67
about ANSI terminals - PowerShellhttps://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_ansi_terminals
https://github.com/jhoneill
James O'Neill (jhoneill)https://github.com/jhoneill
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1151478780
James Truher (JamesWTruher)https://github.com/JamesWTruher
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Needs-TriageThe issue is new and needs to be triaged by a work group.https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Needs-Triage%22
on Jun 9, 2022https://github.com/PowerShell/PowerShell/issues/17509#event-6780937585
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Feb 28, 2023https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1449082643
System.Management.Automation.Internal.StringDecoratedhttps://learn.microsoft.com/en-US/dotnet/api/System.Management.Automation.Internal.StringDecorated
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Nov 15, 2023https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1811660674
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
on Nov 15, 2023https://github.com/PowerShell/PowerShell/issues/17509#event-10961861193
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
on Nov 22, 2023https://github.com/PowerShell/PowerShell/issues/17509#issuecomment-1822552309
Microsoft GitHub Policy Servicehttps://aka.ms/1es-gitops
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
completedhttps://github.com/PowerShell/PowerShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 22, 2023https://github.com/PowerShell/PowerShell/issues/17509#event-11035013600
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/17509
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/17509
Issue-Enhancementthe issue is more of a feature request than a bughttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Enhancement%22
Resolution-No ActivityIssue has had no activity for 6 months or morehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Resolution-No%20Activity%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.