In all previous PowerShell versions (from v2 to v6-beta.7) Remove-Item
ignores missing items if they are specified by wildcards, i.e.
Remove-Item [z] -Force -Recurse
Remove-Item z.* -Force -Recurse
work fine if z or z.* is missing.
In v6-beta.8 the above commands fail.
Is this by design or a regression?
PS> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-beta.8
PSEdition Core
GitCommitId v6.0.0-beta.8
OS Microsoft Windows 10.0.10586
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
In all previous PowerShell versions (from v2 to v6-beta.7)
Remove-Itemignores missing items if they are specified by wildcards, i.e.
work fine if
zorz.*is missing.In v6-beta.8 the above commands fail.
Is this by design or a regression?