Title: Regression: Get-ChildItem -File -Filter *. no longer finds extension-less files on Windows · Issue #9330 · PowerShell/PowerShell · GitHub
Open Graph Title: Regression: Get-ChildItem -File -Filter *. no longer finds extension-less files on Windows · Issue #9330 · PowerShell/PowerShell
X Title: Regression: Get-ChildItem -File -Filter *. no longer finds extension-less files on Windows · Issue #9330 · PowerShell/PowerShell
Description: in Windows PowerShell and v6.1.3 you can match files that don't have a filename extension with provider filter -Filter *.. This doesn't work anymore. Note that -Filter ultimately uses the underlying Windows API for wildcard matching, whi...
Open Graph Description: in Windows PowerShell and v6.1.3 you can match files that don't have a filename extension with provider filter -Filter *.. This doesn't work anymore. Note that -Filter ultimately uses the underlyin...
X Description: in Windows PowerShell and v6.1.3 you can match files that don't have a filename extension with provider filter -Filter *.. This doesn't work anymore. Note that -Filter ultimately uses the u...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Regression: Get-ChildItem -File -Filter *. no longer finds extension-less files on Windows","articleBody":"in Windows PowerShell and v6.1.3 you can match files that don't have a filename extension with provider filter `-Filter *.`. \r\n\r\nThis doesn't work anymore.\r\n\r\nNote that `-Filter` ultimately uses the underlying Windows API for wildcard matching, which has legacy quirks, including the ability to match extension-less filenames with `*.`; it is _not_ the same wildcard language as _PowerShell's own_ (and `*.` wouldn't work that way with, say, `-Include`).\r\n\r\n# Steps to reproduce\r\n\r\nRun the following test on Windows:\r\n\r\n```powershell\r\nDescribe \"Extension-less file filtering\" {\r\n It \"-Filter *. finds extension-less files\" -Skip:(!$IsWindows) {\r\n '' > TestDrive:/foo\r\n (Get-ChildItem -File -LiteralPath TestDrive:/ -Filter *.).Name | Should -Be foo\r\n }\r\n}\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.\r\n\r\n# Environment data\r\n\r\n```none\r\nPowerShell Core v6.2.0 (6.2.0) on Microsoft Windows 10 Pro (64-bit; Version 1803, OS Build: 17134.706)\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-04-10T11:05:56Z","url":"https://github.com/PowerShell/PowerShell/issues/9330"}
| 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:79e92c93-f7c2-b60e-c463-4816a68c64fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90B4:3E1A53:267E6:36750:6AFD689A |
| html-safe-nonce | 0a831710be789975996d709471dd5b1bc9198605f919506b344a442e20f72c13 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEI0OjNFMUE1MzoyNjdFNjozNjc1MDo2QUZENjg5QSIsInZpc2l0b3JfaWQiOiI4NTU5MDI2MjMxMDE2NTE1NzM5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 979cd53246638560d33ae5be89ae40d9bb77d1fc78fd46106780199f734c9f08 |
| hovercard-subject-tag | issue:431441487 |
| 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/9330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf241f37c2a265bb0971809b6b5af76d5ef6686d0cddd2d30ee119b5ed8b1b32/PowerShell/PowerShell/issues/9330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf241f37c2a265bb0971809b6b5af76d5ef6686d0cddd2d30ee119b5ed8b1b32/PowerShell/PowerShell/issues/9330 |
| og:image:alt | in Windows PowerShell and v6.1.3 you can match files that don't have a filename extension with provider filter -Filter *.. This doesn't work anymore. Note that -Filter ultimately uses the underlyin... |
| 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 | 9985ca2e21b59673104d4d830d4afeb946c67f248f273ab2e824c31c8db46e4a |
| 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 | 0db9e8d463c3f4540570e6ad3c501a06db9dc02a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width