-
Notifications
You must be signed in to change notification settings - Fork 8.3k
On Windows and macOS, Get-Item and Get-ChildItem report file names as specified, not their actual case #13190
Copy link
Copy link
Closed
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management moduleWG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.built-in PowerShell providers such as FileSystem, Certificates, Registry, etc.Waiting - DotNetCorewaiting on a fix/change in .NETwaiting on a fix/change in .NET
Metadata
Metadata
Assignees
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management moduleWG-Engine-Providersbuilt-in PowerShell providers such as FileSystem, Certificates, Registry, etc.built-in PowerShell providers such as FileSystem, Certificates, Registry, etc.Waiting - DotNetCorewaiting on a fix/change in .NETwaiting on a fix/change in .NET
Note: The problem:
affects only files, not also directories
for file paths, affects all path components.
Simple demonstration (macOS and Windows):
Note how
POWERSHELL.config.jsonwas reported via.Name- exactly as specified - even though the actual casing of the filename ispowershell.config.jsonSteps to reproduce
Windows and macOS only (platforms with case-insensitive (but case-preserving) file-systems).
Expected behavior
The tests should succeed.
Actual behavior
All tests fail.
Environment data