Title: globbing for native commands is too agressive · Issue #3931 · PowerShell/PowerShell · GitHub
Open Graph Title: globbing for native commands is too agressive · Issue #3931 · PowerShell/PowerShell
X Title: globbing for native commands is too agressive · Issue #3931 · PowerShell/PowerShell
Description: Steps to reproduce Intuitively globbing should not kick-in inside the single-quoted strings. echo '11:1' | grep '.*:.' Expected behavior Works, output is 11:1, like in bash. Actual behavior Cannot find drive. A drive with the name '.*' d...
Open Graph Description: Steps to reproduce Intuitively globbing should not kick-in inside the single-quoted strings. echo '11:1' | grep '.*:.' Expected behavior Works, output is 11:1, like in bash. Actual behavior Cannot ...
X Description: Steps to reproduce Intuitively globbing should not kick-in inside the single-quoted strings. echo '11:1' | grep '.*:.' Expected behavior Works, output is 11:1, like in bash. Actual ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3931
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"globbing for native commands is too agressive","articleBody":"\u003c!--\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](../docs/FAQ.md).\r\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\r\n- Fill out the following repro template\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n-->\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\nIntuitively globbing should not kick-in inside the single-quoted strings.\r\n\r\n```\r\necho '11:1' | grep '.*:.'\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\nWorks, output is `11:1`, like in bash.\r\n\r\nActual behavior\r\n---------------\r\n\r\n```\r\nCannot find drive. A drive with the name '.*' does not exist.\r\nAt line:1 char:1\r\n+ echo '11:1' | grep '.*:.'\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~\r\n + CategoryInfo : ObjectNotFound: (.*:String) [], DriveNotFoundException\r\n + FullyQualifiedErrorId : DriveNotFound \r\n```\r\n\r\nThe error is pretty confusing for a unix user.\r\n\r\nWorkaround\r\n------------\r\n\r\nEscape `*` by a backtick in the regex.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\n> $PSVersionTable\r\n\r\nName Value \r\n---- ----- \r\nPSVersion 6.0.0-beta \r\nPSEdition Core \r\nBuildVersion 3.0.0.0 \r\nCLRVersion \r\nGitCommitId v6.0.0-beta.2 \r\nOS Darwin 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789....\r\nPlatform Unix \r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \r\nPSRemotingProtocolVersion 2.3 \r\nSerializationVersion 1.1.0.1 \r\nWSManStackVersion 3.0 \r\n```\r\n","author":{"url":"https://github.com/vors","@type":"Person","name":"vors"},"datePublished":"2017-06-03T19:46:30Z","url":"https://github.com/PowerShell/PowerShell/issues/3931"}
| 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:0e024747-6709-97b4-dca9-a64fe3d5a51b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C44C:2CE118:25D4D70:34C17DB:6AFD4302 |
| html-safe-nonce | e2537188e32874063bce61a353eda39dd8878fe8c2b0d7ad41978d41ea6339cd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDRDOjJDRTExODoyNUQ0RDcwOjM0QzE3REI6NkFGRDQzMDIiLCJ2aXNpdG9yX2lkIjoiODE4MDE1ODkxNTIwNDE3MDQ5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a3bce39fcf6c7ec6096504fad64457d784bf6c899f47c6b76e241870e7211a67 |
| hovercard-subject-tag | issue:233391293 |
| 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/3931/issue_layout |
| twitter:image | https://opengraph.githubassets.com/01b5ea6cb1938f8c0948ee7d7d7db335d353eae630c46363467361c66b96ab97/PowerShell/PowerShell/issues/3931 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/01b5ea6cb1938f8c0948ee7d7d7db335d353eae630c46363467361c66b96ab97/PowerShell/PowerShell/issues/3931 |
| og:image:alt | Steps to reproduce Intuitively globbing should not kick-in inside the single-quoted strings. echo '11:1' | grep '.*:.' Expected behavior Works, output is 11:1, like in bash. Actual behavior Cannot ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vors |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width