René's URL Explorer Experiment


Title: Stop-parsing token is broken · Issue #18664 · PowerShell/PowerShell · GitHub

Open Graph Title: Stop-parsing token is broken · Issue #18664 · PowerShell/PowerShell

X Title: Stop-parsing token is broken · Issue #18664 · PowerShell/PowerShell

Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerShell 5.1 and PowerShell. Steps to reprodu...

Open Graph Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

X Description: Prerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Stop-parsing token is broken","articleBody":"### Prerequisites\r\n\r\n- [X] Write a descriptive title.\r\n- [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- [X] Search the existing issues.\r\n- [X] Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- [X] Refer to [Differences between Windows PowerShell 5.1 and PowerShell](https://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nThis was previously reported in #15261, which was inappropriately closed as by-design.\r\n\r\nThe purpose of `--%` (which only makes sense on _Windows_) is to copy the remainder of the command line _verbatim_ to the process command line constructed behind the scenes, so as to provide a way to explicitly control the double-quoting for target executables that have non-standard quoting requirements.\r\n\r\nAs such, it should _not_ be affected by the effective value of `$PSNativeCommandArgumentPassing`\r\n\r\n(Note: It is debatable how arguments that come _before_ `--%` on a given command line should be handled; for backward compatibility I think it would make the most sense to process them as if `'Legacy'` were in effect; in other words: `--%` would be an _implicit, command-scoped_ opt-in to `$PSNativeCommandArgumentPassing = 'Legacy'`).\r\n\r\nHowever, as of v7.3.0 it _is_, and the behavior is _broken_ by default (the only way to make it work again is with `$PSNativeCommandArgumentPassing = 'Legacy'`, which should _not_ be necessary).\r\n\r\n```powershell\r\n# Preparation: Create an executable that echoes the raw command line, as `.\\echoCmdLine.exe`\r\n# Note: Must call via *Windows PowerShell*\r\npowershell -NoProfile {\r\n  Add-Type -OutputType ConsoleApplication -OutputAssembly ./echoCmdLine.exe -TypeDefinition @'\r\n  using System;\r\n  static class ConsoleApp {\r\n    static int Main(string[] args) {\r\n      Console.WriteLine(Environment.CommandLine);\r\n      return 0;\r\n    }\r\n  }\r\n'@\r\n}\r\n\r\n# Set $PSNativeCommandArgumentPassing  to something *other* than 'Legacy'\r\n$PSNativeCommandArgumentPassing = 'Windows'  # (the default on Windows)\r\n\r\n# Using --%, pass *verbatim* `/p:Category=\"CI,Nightly\"` on the process command line.\r\n./echoCmdLine --% /p:Category=\"CI,Nightly\"\r\n```\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\n```console\r\n\"C:\\Users\\jdoe\\echoCmdLine.exe\"  /p:Category=\"CI,Nightly\"\r\n```\r\n\r\nThat is, the part of the original command line after `--%` should be copied _as-is_ to the process command line.\r\n\r\nThat is how it has worked since v3 (when `--%` was introduced) and should continue to work, irrespective of the value of `$PSNativeCommandArgumentPassing = 'Legacy'`, in both PowerShell editions.\r\n\r\n\r\n### Actual behavior\r\n\r\n```console\r\n\"C:\\Users\\jdoe\\echoCmdLine.exe\" \"/p:Category=\\\"CI,Nightly\\\"\"\r\n```\r\n\r\nNote how the argument was inappropriately enclosed in `\"...\"`, with embedded `\"` escaped as `\\\"`.\r\n\r\nThat is, the `'Standard'` behavior was inappropriately used (although `cmd.exe`-style environment variables, e.g. `%OS%`, do still get expanded).\r\n\r\n### Error details\r\n\r\n_No response_\r\n\r\n### Environment data\r\n\r\n```powershell\r\nPowerShell Core 7.3.0 on Windows\r\n```\r\n\r\n\r\n### Visuals\r\n\r\n_No response_","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2022-11-25T16:59:45Z","url":"https://github.com/PowerShell/PowerShell/issues/18664"}

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:5cd8e00b-b7f8-43b7-977b-e5e70629888a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id87E2:34A55:E07F6B:141D9EE:6AFDA3A4
html-safe-nonce5fd5a92b90b630aca98bb45470fe2a7f5ba9d5cb548eb899e47aa8bda5f2f5f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0UyOjM0QTU1OkUwN0Y2QjoxNDFEOUVFOjZBRkRBM0E0IiwidmlzaXRvcl9pZCI6IjgwMDE0NjQyMzY3NTg2Mzk1MjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac8641e91499d37dbd15c974d44ba7fbf6894ae90eb4ff94acca0814a5457dae3b
hovercard-subject-tagissue:1464770622
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/18664/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d77f9fb2cf41be393ba531e14aea54fc546c0332396ed77039c63a427e4047f7/PowerShell/PowerShell/issues/18664
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d77f9fb2cf41be393ba531e14aea54fc546c0332396ed77039c63a427e4047f7/PowerShell/PowerShell/issues/18664
og:image:altPrerequisites Write a descriptive title. Make sure you are able to repro it on the latest released version Search the existing issues. Refer to the FAQ. Refer to Differences between Windows PowerSh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemklement0
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
release0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/18664#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F18664
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%2F18664
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/18664
Reloadhttps://github.com/PowerShell/PowerShell/issues/18664
Reloadhttps://github.com/PowerShell/PowerShell/issues/18664
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/18664
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/18664
#28162https://github.com/PowerShell/PowerShell/pull/28162
Stop-parsing token is brokenhttps://github.com/PowerShell/PowerShell/issues/18664#top
#28162https://github.com/PowerShell/PowerShell/pull/28162
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Nov 25, 2022https://github.com/PowerShell/PowerShell/issues/18664#issue-1464770622
latest released versionhttps://github.com/PowerShell/PowerShell/releases
FAQhttps://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md
Differences between Windows PowerShell 5.1 and PowerShellhttps://docs.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
#15261https://github.com/PowerShell/PowerShell/issues/15261
Michael Klement (mklement0)https://github.com/mklement0
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 Nov 25, 2022https://github.com/PowerShell/PowerShell/issues/18664#event-7894421783
Ryan Yates (kilasuit)https://github.com/kilasuit
WG-Enginecore PowerShell engine, interpreter, and runtimehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Engine%22
on Nov 27, 2022https://github.com/PowerShell/PowerShell/issues/18664#event-7898320065
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
7.3-Triagehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%227.3-Triage%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%22
on Nov 28, 2022https://github.com/PowerShell/PowerShell/issues/18664#event-7907414710
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Nov 28, 2022https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-1329850477
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
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 Nov 28, 2022https://github.com/PowerShell/PowerShell/issues/18664#event-7907468247
https://github.com/Scordo
Scordohttps://github.com/Scordo
on Nov 30, 2022https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-1331762691
https://github.com/Scordo
Scordohttps://github.com/Scordo
on Oct 11, 2023https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-1757093601
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
7.3-Triagehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%227.3-Triage%22
on Jan 22, 2024https://github.com/PowerShell/PowerShell/issues/18664#event-11560471671
https://github.com/nickcherrill
nickcherrillhttps://github.com/nickcherrill
on Feb 7, 2024https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-1931775950
We were updated to v7.4.1 from v7.2.18 on the MS Hosted Windows agents for DevOpshttps://github.com/actions/runner-images/commit/6f1fa8953f71675f26fa8e1e808871f6515e8b81
as detailed herehttps://learn.microsoft.com/en-us/powershell/scripting/learn/experimental-features?view=powershell-7.4#psnativecommandargumentpassing
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 Aug 5, 2024https://github.com/PowerShell/PowerShell/issues/18664#event-13770352477
https://github.com/rmccampbell
Ryan McCampbell (rmccampbell)https://github.com/rmccampbell
on Aug 6, 2024https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-2270556424
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 Aug 6, 2024https://github.com/PowerShell/PowerShell/issues/18664#event-13773922809
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 Feb 2, 2025https://github.com/PowerShell/PowerShell/issues/18664#event-16153180393
https://github.com/Scordo
Scordohttps://github.com/Scordo
on Feb 2, 2025https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-2629477189
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 Feb 2, 2025https://github.com/PowerShell/PowerShell/issues/18664#event-16153210014
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 Aug 2, 2025https://github.com/PowerShell/PowerShell/issues/18664#event-18949320288
https://github.com/Scordo
Scordohttps://github.com/Scordo
on Aug 2, 2025https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-3146261390
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 Aug 2, 2025https://github.com/PowerShell/PowerShell/issues/18664#event-18949653094
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 Jan 30, 2026https://github.com/PowerShell/PowerShell/issues/18664#event-22396041556
https://github.com/Scordo
Scordohttps://github.com/Scordo
on Jan 30, 2026https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-3821945118
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 Jan 30, 2026https://github.com/PowerShell/PowerShell/issues/18664#event-22397829674
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 Aug 1, 2026https://github.com/PowerShell/PowerShell/issues/18664#event-28823700179
https://github.com/JensAtQuanos
Jens Hofmann (JensAtQuanos)https://github.com/JensAtQuanos
on Aug 1, 2026https://github.com/PowerShell/PowerShell/issues/18664#issuecomment-5152634121
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 Aug 1, 2026https://github.com/PowerShell/PowerShell/issues/18664#event-28823799997
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%22
on Oct 7, 2026https://github.com/PowerShell/PowerShell/issues/18664#event-32719740103
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/18664
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/18664
In-PRIndicates that a PR is out for the issuehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22In-PR%22
Issue-BugIssue has been identified as a bug in the producthttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Issue-Bug%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.