Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change MatchType for EnumerationOptions to be Win32 #9529

Merged
merged 1 commit into from
May 7, 2019

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