Skip to content

v6-beta.8: Potential regression of Remove-Item with wildcards and missing items #5031

@nightroman

Description

@nightroman

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

Metadata

Metadata

Assignees

Labels

Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-FixedThe issue is fixed.WG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions