Skip to content

Change MatchType for EnumerationOptions to be Win32 - #9529

Merged
Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:dir-filter
May 7, 2019
Merged

Aditya Patwardhan (adityapatwardhan) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:dir-filter

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented May 4, 2019 •

Copy link
Copy Markdown
Member

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 Aditya Patwardhan (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
Aditya Patwardhan (adityapatwardhan) merged commit 346ab8c into PowerShell:master May 7, 2019
@SteveL-MSFT
Steve Lee (SteveL-MSFT) deleted the dir-filter branch May 7, 2019 05:07
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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