Skip to content

Conversation

SteveL-MSFT
Copy link
Member

@SteveL-MSFT SteveL-MSFT commented May 4, 2019

PR Summary

Looks like CoreFx added a new MatchType property to EnumerationOptions that defaults to Simple which doesn't map to the Windows PowerShell behavior where a filter like *.* would match a file with no extension. Fix is to explicitly set MatchType to Win32 to get the old behavior to make it consistent with Windows PowerShell.

PR Context

Fix #9330

PR Checklist

@adityapatwardhan adityapatwardhan added CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log CL-BreakingChange Indicates that a PR should be marked as a breaking change in the Change Log and removed CL-BreakingChange Indicates that a PR should be marked as a breaking change in the Change Log labels May 7, 2019
@adityapatwardhan adityapatwardhan added this to the 6.2.1-consider milestone May 7, 2019
@adityapatwardhan adityapatwardhan merged commit 346ab8c into PowerShell:master May 7, 2019
@SteveL-MSFT SteveL-MSFT deleted the dir-filter branch May 7, 2019 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: Get-ChildItem -File -Filter *. no longer finds extension-less files on Windows
2 participants