René's URL Explorer Experiment


Title: Apply quoting for globbing `*` and `~` in splatting. by kzrnm · Pull Request #26232 · PowerShell/PowerShell · GitHub

Open Graph Title: Apply quoting for globbing `*` and `~` in splatting. by kzrnm · Pull Request #26232 · PowerShell/PowerShell

X Title: Apply quoting for globbing `*` and `~` in splatting. by kzrnm · Pull Request #26232 · PowerShell/PowerShell

Description: PR Summary Fix #24178 On Unix-like platforms. /bin/echo @( '*' ) Note that using embedded quoting (e.g., @('"*"')) is not an option, because it becomes part of the argument. Expected behavior * should print verbatim. Note: * The above assumes that `'*'` should _not_ be treated like a bareword in the context of splatting, which in turn implies that you fundamentally cannot specify barewords that way, and would have to use something like `@((Get-Item * -Name))` to manually perform the desired globbing. * This strikes me as an acceptable trade-off and much preferable to the alternative: defaulting to interpretation as barewords, with a yet-to-be-devised opt-out method. Actual behavior The names of the files and subdirectories in the current directory print, because native globbing was applied. According to the comment added in #5188: Supporting this scenario would require adding a NoteProperty to each quoted string argument - maybe not worth it, and maybe an argument for another way to suppress globbing. https://github.com/kzrnm/PowerShell/blob/26bb188c8be0cda6cb548ce1a12840ebf67e1331/test/powershell/Language/Scripting/NativeExecution/NativeUnixGlobbing.Tests.ps1#L84-L88 However, I disagree with this comment. As noted in #24178, there are cases where one wants to use splatting without enabling globbing. Therefore, I believe implementing this via a NoteProperty would be worth it. Additional considerations When using an expression other than a string literal, such as /bin/echo "a*a".Replace("a",""), globbing is performed. This behavior is unintuitive, so I think it’s worth considering a breaking change to make it not perform globbing along with the above modification. PR Context PR Checklist [z] PR has a meaningful title Use the present tense and imperative mood when describing your changes [z] Summarized changes Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header This PR is ready to merge. If this PR is a work in progress, please open this as a Draft Pull Request and mark it as Ready to Review when it is ready to merge. Breaking changes None OR Experimental feature(s) needed Experimental feature name(s): User-facing changes Not Applicable OR Documentation needed Issue filed: #24178 Testing - New and feature N/A or can only be tested interactively OR Make sure you've added a new test if existing tests do not effectively test the code changed

Open Graph Description: PR Summary Fix #24178 On Unix-like platforms. /bin/echo @( '*' ) Note that using embedded quoting (e.g., @('"*"')) is not an option, because it becomes part of the argume...

X Description: PR Summary Fix #24178 On Unix-like platforms. /bin/echo @( '*' ) Note that using embedded quoting (e.g., @('"*"')) is not an option, because it be...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/26232

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4ccc30ef-d8bf-0fe3-1bcd-b78a4771b186
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC562:301773:2A28E8:3B29EF:6AFD745C
html-safe-noncec001a5cd2e90f496ad189ffe8669f78f255c251ab52877268bb74de3226a2e12
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTYyOjMwMTc3MzoyQTI4RTg6M0IyOUVGOjZBRkQ3NDVDIiwidmlzaXRvcl9pZCI6IjIyNDY5Mzc1NDMxMzM5ODM4MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacba06dc62c38ae57f999ccf66a66872669b8815a09053e592b91215fbcd53cb1e
hovercard-subject-tagpull_request:2925399487
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/26232/files
twitter:imagehttps://avatars.githubusercontent.com/u/32071278?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/32071278?s=400&v=4
og:image:altPR Summary Fix #24178 On Unix-like platforms. /bin/echo @( '*' ) Note that using embedded quoting (e.g., @('"*"')) is not an option, because it becomes part of the argume...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee54006cf2b96d1ac260960edd10003132911469ccd1ec99c9803119fe2a4e032
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5be0bf2b8cf26f8897d31e6bc3c232d328b12a54
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/26232/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F26232%2Ffiles
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%2Fpull%2F26232%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/26232/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/26232/files
Reloadhttps://github.com/PowerShell/PowerShell/pull/26232/files
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 requests365 (365)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
Sign up for GitHub https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose
kzrnm (kzrnm)https://github.com/kzrnm
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
kzrnm:globbinghttps://github.com/kzrnm/PowerShell/tree/globbing
Conversation 7 https://github.com/PowerShell/PowerShell/pull/26232
Commits 6 https://github.com/PowerShell/PowerShell/pull/26232/commits
Checks 36 https://github.com/PowerShell/PowerShell/pull/26232/checks
Files changed https://github.com/PowerShell/PowerShell/pull/26232/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/26232/files
Apply quoting for globbing * and ~ in splatting. https://github.com/PowerShell/PowerShell/pull/26232/files#top
Show all changes 6 commits https://github.com/PowerShell/PowerShell/pull/26232/files
d29b365 Wrap value of StringConstantExpressionAst kzrnm Oct 17, 2025 https://github.com/PowerShell/PowerShell/pull/26232/commits/d29b36553ac4b8047362b3a898f1870e89ab396b
cd908b6 Update splat tests kzrnm Oct 17, 2025 https://github.com/PowerShell/PowerShell/pull/26232/commits/cd908b64d3fae4931ee9d54128fb99b35ed5a04c
aa0b3de Merge branch 'master' into globbing kzrnm Oct 18, 2025 https://github.com/PowerShell/PowerShell/pull/26232/commits/aa0b3de4c195fbaee4ad682a1ee70adfb5cc6113
19b09f2 Merge branch 'master' into globbing kzrnm Oct 26, 2025 https://github.com/PowerShell/PowerShell/pull/26232/commits/19b09f2bdd9d8981e7b9e8f3e9834f0289f5d4b8
f92ea7f Merge branch 'master' into globbing jshigetomi Jan 19, 2026 https://github.com/PowerShell/PowerShell/pull/26232/commits/f92ea7fa412255a6140c46f71848b35414c94375
9a70798 Merge remote-tracking branch 'upstream/master' into globbing kzrnm May 22, 2026 https://github.com/PowerShell/PowerShell/pull/26232/commits/9a70798728fe9e931eb2ca2b1201f6cbe38985a8
Clear filters https://github.com/PowerShell/PowerShell/pull/26232/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/26232/files
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/26232/files
NativeCommandParameterBinder.cs https://github.com/PowerShell/PowerShell/pull/26232/files#diff-2c8dfa27f5bc6452feceba5b5d1e9c8db440ca27c4f59a281a9aa769ad9a8dee
parserutils.cs https://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
Compiler.cs https://github.com/PowerShell/PowerShell/pull/26232/files#diff-9187d207767f8dde169abec7fb461e2f26c03d92dc2c9962067bb14cfb8f41e0
ScriptBlockToPowerShell.cs https://github.com/PowerShell/PowerShell/pull/26232/files#diff-e28b4e3eec16679ef3380ac970827b2deb6f049a0183273a7f5435da55225321
NativeUnixGlobbing.Tests.ps1 https://github.com/PowerShell/PowerShell/pull/26232/files#diff-56cad09ca061fec68803043ad6fa65599243a1707bd37799a0b1b06e508f03c5
NativeWindowsTildeExpansion.Tests.ps1 https://github.com/PowerShell/PowerShell/pull/26232/files#diff-f1aea63bdc212b51db641aa88c46908e6a68988c6fac407953fc4ae3a5414deb
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
src/System.Management.Automation/engine/NativeCommandParameterBinder.cshttps://github.com/PowerShell/PowerShell/pull/26232/files#diff-2c8dfa27f5bc6452feceba5b5d1e9c8db440ca27c4f59a281a9aa769ad9a8dee
View file https://github.com/PowerShell/PowerShell/blob/9a70798728fe9e931eb2ca2b1201f6cbe38985a8/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/26232/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-2c8dfa27f5bc6452feceba5b5d1e9c8db440ca27c4f59a281a9aa769ad9a8dee
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-2c8dfa27f5bc6452feceba5b5d1e9c8db440ca27c4f59a281a9aa769ad9a8dee
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
src/System.Management.Automation/engine/lang/parserutils.cshttps://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
View file https://github.com/PowerShell/PowerShell/blob/9a70798728fe9e931eb2ca2b1201f6cbe38985a8/src/System.Management.Automation/engine/lang/parserutils.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/26232/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-d04ec123ddfba57b269fd4c1ba199de16d132cd42a8fe36810607306025eb7c2
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L49
src/System.Management.Automation/engine/parser/Compiler.cshttps://github.com/PowerShell/PowerShell/pull/26232/files#diff-9187d207767f8dde169abec7fb461e2f26c03d92dc2c9962067bb14cfb8f41e0
View file https://github.com/PowerShell/PowerShell/blob/9a70798728fe9e931eb2ca2b1201f6cbe38985a8/src/System.Management.Automation/engine/parser/Compiler.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/26232/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-9187d207767f8dde169abec7fb461e2f26c03d92dc2c9962067bb14cfb8f41e0
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-9187d207767f8dde169abec7fb461e2f26c03d92dc2c9962067bb14cfb8f41e0
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-9187d207767f8dde169abec7fb461e2f26c03d92dc2c9962067bb14cfb8f41e0
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-9187d207767f8dde169abec7fb461e2f26c03d92dc2c9962067bb14cfb8f41e0
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-9187d207767f8dde169abec7fb461e2f26c03d92dc2c9962067bb14cfb8f41e0
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cshttps://github.com/PowerShell/PowerShell/pull/26232/files#diff-e28b4e3eec16679ef3380ac970827b2deb6f049a0183273a7f5435da55225321
View file https://github.com/PowerShell/PowerShell/blob/9a70798728fe9e931eb2ca2b1201f6cbe38985a8/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/26232/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-e28b4e3eec16679ef3380ac970827b2deb6f049a0183273a7f5435da55225321
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-e28b4e3eec16679ef3380ac970827b2deb6f049a0183273a7f5435da55225321
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-e28b4e3eec16679ef3380ac970827b2deb6f049a0183273a7f5435da55225321
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-e28b4e3eec16679ef3380ac970827b2deb6f049a0183273a7f5435da55225321
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-e28b4e3eec16679ef3380ac970827b2deb6f049a0183273a7f5435da55225321
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
test/powershell/Language/Scripting/NativeExecution/NativeUnixGlobbing.Tests.ps1https://github.com/PowerShell/PowerShell/pull/26232/files#diff-56cad09ca061fec68803043ad6fa65599243a1707bd37799a0b1b06e508f03c5
View file https://github.com/PowerShell/PowerShell/blob/9a70798728fe9e931eb2ca2b1201f6cbe38985a8/test/powershell/Language/Scripting/NativeExecution/NativeUnixGlobbing.Tests.ps1
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/26232/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-56cad09ca061fec68803043ad6fa65599243a1707bd37799a0b1b06e508f03c5
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-56cad09ca061fec68803043ad6fa65599243a1707bd37799a0b1b06e508f03c5
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-56cad09ca061fec68803043ad6fa65599243a1707bd37799a0b1b06e508f03c5
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-56cad09ca061fec68803043ad6fa65599243a1707bd37799a0b1b06e508f03c5
https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7
test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1https://github.com/PowerShell/PowerShell/pull/26232/files#diff-f1aea63bdc212b51db641aa88c46908e6a68988c6fac407953fc4ae3a5414deb
View file https://github.com/PowerShell/PowerShell/blob/9a70798728fe9e931eb2ca2b1201f6cbe38985a8/test/powershell/Language/Scripting/NativeExecution/NativeWindowsTildeExpansion.Tests.ps1
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/26232/{{ revealButtonHref }}
https://github.com/PowerShell/PowerShell/pull/26232/files#diff-f1aea63bdc212b51db641aa88c46908e6a68988c6fac407953fc4ae3a5414deb
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/26232/files
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.