Title: "Rogue" filenames that contain a backslash break automatic globbing for native commands on macOS and Linux · Issue #10682 · PowerShell/PowerShell · GitHub
Open Graph Title: "Rogue" filenames that contain a backslash break automatic globbing for native commands on macOS and Linux · Issue #10682 · PowerShell/PowerShell
X Title: "Rogue" filenames that contain a backslash break automatic globbing for native commands on macOS and Linux · Issue #10682 · PowerShell/PowerShell
Description: Note: This case is covered by catch-all issue #9244 The presence of a filename containing a \ that matches a wildcard pattern causes native globbing to fail quietly (and pass the pattern through as-is, as if nothing matched). Note that \...
Open Graph Description: Note: This case is covered by catch-all issue #9244 The presence of a filename containing a \ that matches a wildcard pattern causes native globbing to fail quietly (and pass the pattern through as...
X Description: Note: This case is covered by catch-all issue #9244 The presence of a filename containing a \ that matches a wildcard pattern causes native globbing to fail quietly (and pass the pattern through as...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10682
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Rogue\" filenames that contain a backslash break automatic globbing for native commands on macOS and Linux","articleBody":"Note: This case is covered by catch-all issue #9244\r\n\r\nThe presence of a filename containing a `\\` that matches a wildcard pattern causes native globbing to fail quietly (and pass the pattern through as-is, as if nothing matched).\r\n\r\nNote that `\\` is a legal filename character on Unix-like platforms.\r\n\r\n# Steps to reproduce\r\n\r\nOn **macOS** and **Linux**:\r\n\r\n```powershell\r\ntouch 'a\\b'\r\n/bin/echo * | Should -Not -Be '*'\r\nrm 'a\\b'\r\n```\r\n\r\n# Expected behavior\r\n\r\nThe test should pass.\r\n\r\n# Actual behavior\r\n\r\nThe test fails, because `*` is echoed as-is - no expansion to matching filenames occurs.\r\n\r\n Windows is not affected, because native globbing isn't applied there).\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nPowerShell Core v7.0.0-preview.4 on macOS 10.14.6\r\nPowerShell Core v7.0.0-preview.4 (7.0.0-preview.4) on Ubuntu 18.04.3 LTS\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-10-02T15:10:10Z","url":"https://github.com/PowerShell/PowerShell/issues/10682"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1a489e3c-0bc2-dd46-1655-6a4e27574b58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B7E:30C04A:1D2DEC:28B889:6AFD809A |
| html-safe-nonce | ac4ea6036329d9609cd2aa5595c0f789d80d2e740cdc8bb62ed596824d231e4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjdFOjMwQzA0QToxRDJERUM6MjhCODg5OjZBRkQ4MDlBIiwidmlzaXRvcl9pZCI6IjI1NzUzNzI4Mzc1NjA2MTUwNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 865a7ff4594b48c31846c87283094f4019b084a412e81d3d9b68abbdb4acc593 |
| hovercard-subject-tag | issue:501552374 |
| 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/10682/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a334c481c5746187c0013d38464d113ab8836aed051585744b44c000f8fa5bbc/PowerShell/PowerShell/issues/10682 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a334c481c5746187c0013d38464d113ab8836aed051585744b44c000f8fa5bbc/PowerShell/PowerShell/issues/10682 |
| og:image:alt | Note: This case is covered by catch-all issue #9244 The presence of a filename containing a \ that matches a wildcard pattern causes native globbing to fail quietly (and pass the pattern through as... |
| 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 | 42d4967e3c8afca51ccac31f419a705af777226a95f025ea73387d87a306b326 |
| 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 | 2329ceed0bc2c7b7c3b9f5f2db6abfc7b6fc3a50 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width