I am experienceing an issue with Get-ChildItem. When I use the -Path parameter, and include a filename that is in a diFfErEnt casing than the existing file, GCI returns the file with my diFfErEnt cased name as the Name property.
Expected behavior
PS>gci -Path fileNAME.txt | Select Name
Name
----
FileName.txt
Actual behavior
PS>gci -Path fileNAME.txt | Select Name
Name
----
fileNAME.txt
Error details
No response
Environment data
Name Value
---- -----
PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Prerequisites
Steps to reproduce
I am experienceing an issue with
Get-ChildItem
. When I use the-Path
parameter, and include a filename that is in a diFfErEnt casing than the existing file, GCI returns the file with my diFfErEnt cased name as the Name property.Expected behavior
Actual behavior
Error details
No response
Environment data
Visuals