Title: Unix-like platforms: native globbing and tilde expansion cannot be prevented with backtick-escaping · Issue #21304 · PowerShell/PowerShell · GitHub
Open Graph Title: Unix-like platforms: native globbing and tilde expansion cannot be prevented with backtick-escaping · Issue #21304 · PowerShell/PowerShell
X Title: Unix-like platforms: native globbing and tilde expansion cannot be prevented with backtick-escaping · Issue #21304 · 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/21304
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unix-like platforms: native globbing and tilde expansion cannot be prevented with backtick-escaping","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: \r\n * With respect to tilde expansion, Windows is affected too, in the context of the experimental `PSNativeWindowsTildeExpansion` feature.\r\n\r\nNormally, interpreting what would otherwise be an argument parsing-mode metacharacter _literally_ can be deactivated with `` ` ``; e.g, ``cmd /c echo `@`` and `cmd /c echo '@'` are equivalent.\r\n\r\nThe same should apply to the POSIX-shell _emulation_ features:\r\n\r\n```powershell\r\n# Run on Linux or macOS.\r\n\r\n# Tilde expansion: `~ should ensure *literal* treatment of ~\r\n/bin/echo `~\r\n\r\n# Native globbing: `* should ensure *literal* treatment of *\r\n/bin/echo `*\r\n```\r\n\r\nSee also:\r\n\r\n* #10683\r\n\r\n### Expected behavior\r\n\r\n`~` and `*` should print literally.\r\n\r\n### Actual behavior\r\n\r\nThe `` ` ``-escaping is ignored, and expansion is still performed.\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.2\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-03-05T00:29:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/21304/PowerShell/issues/21304"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:03bf9cbf-c13c-2925-3d7e-fcdbf00b6cdc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EA0C:24A400:E5357F:139106D:6A55653D |
| html-safe-nonce | eed684d468779974b9ddcba64c6141b7f9a1580beb1d48915d378cb253ca07f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTBDOjI0QTQwMDpFNTM1N0Y6MTM5MTA2RDo2QTU1NjUzRCIsInZpc2l0b3JfaWQiOiIzOTAwODMzNzA5Njk2NTc0NzgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | da6b852e1ee52edce150479d1f55e3ce9d9a04cd90affeb09bc28f110dc79977 |
| hovercard-subject-tag | issue:2168043359 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/21304/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6b319fed9e615cf754628438b7c78931aacffd9cd06571ecb48f0235e827370a/PowerShell/PowerShell/issues/21304 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6b319fed9e615cf754628438b7c78931aacffd9cd06571ecb48f0235e827370a/PowerShell/PowerShell/issues/21304 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8201d0b7bc32164c4662de52242e463a356df543 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width