Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-ChildItem overwrites a file's Name property #21646

Open
5 tasks done
dt1ll0ts0n opened this issue May 8, 2024 · 2 comments
Open
5 tasks done

Get-ChildItem overwrites a file's Name property #21646

dt1ll0ts0n opened this issue May 8, 2024 · 2 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group.

Comments

@dt1ll0ts0n
Copy link

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

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

Visuals

image

@dt1ll0ts0n dt1ll0ts0n added the Needs-Triage The issue is new and needs to be triaged by a work group. label May 8, 2024
@mklement0
Copy link
Contributor

Good point; this was first reported and discussed at length in:

@dt1ll0ts0n
Copy link
Author

Wow - what a ride that discussion was. Clearly nothing came of it, though.

Thanks for including my voice in the chorus, @mklement0 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group.
Projects
None yet
Development

No branches or pull requests

2 participants