-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-DeclinedThe proposed feature is declined.The proposed feature is declined.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issuesWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Description
Summary of the new feature/enhancement
From #15304.
Get-ChildItem
should provide output in a consistent ordering across platforms if possible, and if implemented should add a switch to opt out of the overhead of sorting.
One important question around this ordering is whether it should be case-sensitive or not across platforms. Currently it is sorted with CurrentCultureIgnoreCase
:
PowerShell/src/System.Management.Automation/namespaces/FileSystemProvider.cs
Lines 1617 to 1618 in c857392
// On some systems, this is already sorted. For consistency, always sort again. | |
IEnumerable<FileSystemInfo> sortedChildList = childList.OrderBy(c => c.Name, StringComparer.CurrentCultureIgnoreCase); |
However, it may be desirable on *nix platforms or on case-sensitive filesystems to make the ordering discern case-sensitivity.
Metadata
Metadata
Assignees
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugNeeds-TriageThe issue is new and needs to be triaged by a work group.The issue is new and needs to be triaged by a work group.Resolution-DeclinedThe proposed feature is declined.The proposed feature is declined.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issuesWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module