René's URL Explorer Experiment


Title: Unix: Native globbing cannot be bypassed when using splatting · Issue #24178 · PowerShell/PowerShell · GitHub

Open Graph Title: Unix: Native globbing cannot be bypassed when using splatting · Issue #24178 · PowerShell/PowerShell

X Title: Unix: Native globbing cannot be bypassed when using splatting · Issue #24178 · 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/24178

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unix: Native globbing cannot be bypassed when using splatting","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://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell).\r\n\r\n### Steps to reproduce\r\n\r\nNote: This has been reported before, but not as a dedicated issue:\r\n\r\n* By @jborean93 in https://github.com/PowerShell/PowerShell/issues/24170#issuecomment-2294602625\r\n* Prior to that, by @andrewhickman in https://github.com/PowerShell/PowerShell/issues/17176#issuecomment-1185753356\r\n\r\nOn Unix, barewords passed as arguments to external (native) programs are subject to globbing (filename expansion), if they contain `*` or `?`, for compatibility with native Unix shells.\r\n\r\n* In _direct_ invocation, the way to avoid this is to _quote_ the bareword, e.g. `'*'`\r\n\r\n* However - and this constitutes the bug -  when _splatting_, the globbing _cannot be prevented_:\r\n\r\n```powershell\r\n# On Unix-like platforms.\r\n/bin/echo @( '*' )\r\n```\r\n\r\nNote that using _embedded_ quoting (e.g., `@('\"*\"')`) is _not_ an option, because it becomes part of the argument.\r\n\r\n### Expected behavior\r\n\r\n`*` should print verbatim.\r\n\r\nNote:\r\n\r\n* 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.\r\n\r\n* 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.\r\n\r\n\r\n### Actual behavior\r\n\r\nThe names of the files and subdirectories in the current directory print, because native globbing was applied.\r\n\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 7.5.0-preview.3 on Unix-like platforms.\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":"2024-08-20T18:31:25Z","url":"https://github.com/PowerShell/PowerShell/issues/24178"}

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:938e0741-bd3c-8852-9283-ec944bb437e3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE8B2:32B4C5:149A15:1C2B92:6AFD4D6D
html-safe-nonce9d49bc088916e59149af4361046614ab484f120386cc72171823594c35c868ce
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEIyOjMyQjRDNToxNDlBMTU6MUMyQjkyOjZBRkQ0RDZEIiwidmlzaXRvcl9pZCI6IjM3MDk3MzE1MzIxNjg4NDI2MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac37e29143a75d4716e025929459acf32f3d5e32797ea0a8155cf9dcc3b656738d
hovercard-subject-tagissue:2476277245
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/24178/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9c119476e9c45635b9102f1d17295b583b9116cc04f8ae554aa4b4544df86feb/PowerShell/PowerShell/issues/24178
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9c119476e9c45635b9102f1d17295b583b9116cc04f8ae554aa4b4544df86feb/PowerShell/PowerShell/issues/24178
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
None66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e
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
releaseb6f01f7cb9f35f8c09949773241a3d49dd04b340
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/issues/24178#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fissues%2F24178
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%2F24178
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/24178
Reloadhttps://github.com/PowerShell/PowerShell/issues/24178
Reloadhttps://github.com/PowerShell/PowerShell/issues/24178
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
https://github.com/PowerShell/PowerShell
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/24178
New issuehttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/24178
#26232https://github.com/PowerShell/PowerShell/pull/26232
Unix: Native globbing cannot be bypassed when using splattinghttps://github.com/PowerShell/PowerShell/issues/24178#top
#26232https://github.com/PowerShell/PowerShell/pull/26232
KeepOpenThe bot will ignore these and not auto-closehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22KeepOpen%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
WG-Interactive-Consolethe console experiencehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Interactive-Console%22
WG-NeedsReviewNeeds a review by the labeled Working Grouphttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-NeedsReview%22
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Aug 20, 2024https://github.com/PowerShell/PowerShell/issues/24178#issue-2476277245
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://learn.microsoft.com/powershell/scripting/whats-new/differences-from-windows-powershell
Jordan Borean (@jborean93)https://github.com/jborean93
Different behavior on Linux vs. Windows for passing "*" to az cli #24170 (comment)https://github.com/PowerShell/PowerShell/issues/24170#issuecomment-2294602625
Andrew Hickman (@andrewhickman)https://github.com/andrewhickman
Add an option to disable globbing on Linux #17176 (comment)https://github.com/PowerShell/PowerShell/issues/17176#issuecomment-1185753356
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 Aug 20, 2024https://github.com/PowerShell/PowerShell/issues/24178#event-13949231202
https://github.com/SteveL-MSFT
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
on Aug 26, 2024https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2310978074
https://github.com/jborean93
Jordan Borean (jborean93)https://github.com/jborean93
on Aug 26, 2024https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2310990186
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Aug 26, 2024https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2310996583
Steve Lee (@SteveL-MSFT)https://github.com/SteveL-MSFT
Jordan Borean (@jborean93)https://github.com/jborean93
Steve Lee (SteveL-MSFT)https://github.com/SteveL-MSFT
WG-Interactive-Consolethe console experiencehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Interactive-Console%22
WG-NeedsReviewNeeds a review by the labeled Working Grouphttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-NeedsReview%22
on Aug 26, 2024https://github.com/PowerShell/PowerShell/issues/24178#event-14018940474
https://github.com/theJasonHelmick
Jason Helmick (theJasonHelmick)https://github.com/theJasonHelmick
on Oct 16, 2024https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2417981478
Jason Helmick (theJasonHelmick)https://github.com/theJasonHelmick
WG-ReviewedA Working Group has reviewed this and made a recommendationhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Reviewed%22
WG-NeedsReviewNeeds a review by the labeled Working Grouphttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-NeedsReview%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 Oct 16, 2024https://github.com/PowerShell/PowerShell/issues/24178#event-14689495335
https://github.com/jborean93
Jordan Borean (jborean93)https://github.com/jborean93
on Oct 16, 2024https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2418008315
Jason Helmick (@theJasonHelmick)https://github.com/theJasonHelmick
https://github.com/jborean93
Jordan Borean (jborean93)https://github.com/jborean93
on Oct 16, 2024https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2418021414
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Oct 17, 2024https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2420093796
Jordan Borean (@jborean93)https://github.com/jborean93
Jason Helmick (@theJasonHelmick)https://github.com/theJasonHelmick
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 Apr 16, 2025https://github.com/PowerShell/PowerShell/issues/24178#event-17283192015
https://github.com/Shayan-To
Shayan Toqraee (Shayan-To)https://github.com/Shayan-To
on Apr 22, 2025https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-2821516763
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 Apr 22, 2025https://github.com/PowerShell/PowerShell/issues/24178#event-17355033246
https://github.com/kzrnm
kzrnm (kzrnm)https://github.com/kzrnm
on Oct 15, 2025https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-3406209982
https://github.com/kzrnm/git-completion-pwsh/blob/18b5d008bb6e43e85cb74c79084e165033c4928e/src/Common/GitCommands.ps1#L30https://github.com/kzrnm/git-completion-pwsh/blob/18b5d008bb6e43e85cb74c79084e165033c4928e/src/Common/GitCommands.ps1#L30
kzrnm (kzrnm)https://github.com/kzrnm
on Oct 16, 2025https://github.com/PowerShell/PowerShell/issues/24178#event-20316420899
Use VerbatimArgumenthttps://github.com/kzrnm/git-completion-pwsh/commit/9eaa6438ecd7c8afd703a5838889bf42e68ad9e9
9eaa643https://github.com/kzrnm/git-completion-pwsh/commit/9eaa6438ecd7c8afd703a5838889bf42e68ad9e9
https://github.com/kzrnm
kzrnm (kzrnm)https://github.com/kzrnm
on Oct 16, 2025https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-3410460480
#26198https://github.com/PowerShell/PowerShell/issues/26198
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 Apr 14, 2026https://github.com/PowerShell/PowerShell/issues/24178#event-24506311615
https://github.com/mklement0
Michael Klement (mklement0)https://github.com/mklement0
on Apr 15, 2026https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-4251495963
Native tilde expansion is inappropriately applied indirectly, to arguments supplied via unquoted variable references #27192https://github.com/PowerShell/PowerShell/issues/27192
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 Apr 15, 2026https://github.com/PowerShell/PowerShell/issues/24178#event-24525348808
Patrick Meinecke (SeeminglyScience)https://github.com/SeeminglyScience
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
WG-NeedsReviewNeeds a review by the labeled Working Grouphttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-NeedsReview%22
on Apr 22, 2026https://github.com/PowerShell/PowerShell/issues/24178#event-24767947544
https://github.com/SeeminglyScience
Patrick Meinecke (SeeminglyScience)https://github.com/SeeminglyScience
on Apr 22, 2026https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-4299064164
https://github.com/theJasonHelmick
Jason Helmick (theJasonHelmick)https://github.com/theJasonHelmick
on Apr 29, 2026https://github.com/PowerShell/PowerShell/issues/24178#issuecomment-4347587985
Michael Klement (@mklement0)https://github.com/mklement0
Jason Helmick (theJasonHelmick)https://github.com/theJasonHelmick
KeepOpenThe bot will ignore these and not auto-closehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22KeepOpen%22
WG-ReviewedA Working Group has reviewed this and made a recommendationhttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Reviewed%22
on Apr 29, 2026https://github.com/PowerShell/PowerShell/issues/24178#event-25009414540
Sign up for freehttps://github.com/signup?return_to=https://github.com/PowerShell/PowerShell/issues/24178
Sign in to commenthttps://github.com/login?return_to=https://github.com/PowerShell/PowerShell/issues/24178
KeepOpenThe bot will ignore these and not auto-closehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22KeepOpen%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
WG-Interactive-Consolethe console experiencehttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-Interactive-Console%22
WG-NeedsReviewNeeds a review by the labeled Working Grouphttps://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22WG-NeedsReview%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.