Title: Select-Object -unique is inconsistently case sensitive · Issue #12059 · PowerShell/PowerShell · GitHub
Open Graph Title: Select-Object -unique is inconsistently case sensitive · Issue #12059 · PowerShell/PowerShell
X Title: Select-Object -unique is inconsistently case sensitive · Issue #12059 · PowerShell/PowerShell
Description: Steps to reproduce "derp","Derp" | Select-Object -unique Expected behavior Single Return of derp Actual behavior [PSCustomObject]@{Name = "derp"},[PSCustomObject]@{Name = "Derp"} | Select-Object -unique # Returns one 'derp' "derp","Derp"...
Open Graph Description: Steps to reproduce "derp","Derp" | Select-Object -unique Expected behavior Single Return of derp Actual behavior [PSCustomObject]@{Name = "derp"},[PSCustomObject]@{Name = "Derp"} | Select-Object -u...
X Description: Steps to reproduce "derp","Derp" | Select-Object -unique Expected behavior Single Return of derp Actual behavior [PSCustomObject]@{Name = "derp"},[PSCustomObject]@{Nam...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/12059
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Select-Object -unique is inconsistently case sensitive","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6?view=powershell-6).\r\n\r\n--\u003e\r\n\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n\"derp\",\"Derp\" | Select-Object -unique\r\n```\r\n\r\n# Expected behavior\r\n\r\n```none\r\nSingle Return of derp\r\n```\r\n\r\n# Actual behavior\r\n\r\n```none\r\n[PSCustomObject]@{Name = \"derp\"},[PSCustomObject]@{Name = \"Derp\"} | Select-Object -unique\r\n# Returns one 'derp'\r\n\r\n\"derp\",\"Derp\" | Select-Object -unique\r\n# Returns two, \"Derp\", and \"derp\"\r\n\r\n\"derp\",\"Derp\" | Sort-Object -unique\r\n# Returns One 'derp'\r\n\r\n# Also: This is also the way it behaves in 5.1, if it helps\r\n```\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0\r\nPSEdition Core\r\nGitCommitId 7.0.0\r\nOS Microsoft Windows 10.0.18362\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```\r\n","author":{"url":"https://github.com/bobfrankly","@type":"Person","name":"bobfrankly"},"datePublished":"2020-03-06T18:19:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":17},"url":"https://github.com/12059/PowerShell/issues/12059"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1c059b1e-f2df-d5b0-1dd9-91af7763dd5f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82C0:1F08C5:42B4841:5CB433D:6A54DBFD |
| html-safe-nonce | ba8b040d67a0d99b15249656de85e8b32bf7798f6a945cf84bd2d40411d52ef1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkMwOjFGMDhDNTo0MkI0ODQxOjVDQjQzM0Q6NkE1NERCRkQiLCJ2aXNpdG9yX2lkIjoiNzAxNzQ4NTc0MzE3NTI5Mzk0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 860ee10add8933f3c9d446ab19e22177042522b49395a8c65b4bc9e7c60a1efd |
| hovercard-subject-tag | issue:577097568 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/12059/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91e2fb2fc0cdd84b5fa9d0b5d87786c9a98e710a99272422f7f70b038cca0360/PowerShell/PowerShell/issues/12059 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91e2fb2fc0cdd84b5fa9d0b5d87786c9a98e710a99272422f7f70b038cca0360/PowerShell/PowerShell/issues/12059 |
| og:image:alt | Steps to reproduce "derp","Derp" | Select-Object -unique Expected behavior Single Return of derp Actual behavior [PSCustomObject]@{Name = "derp"},[PSCustomObject]@{Name = "Derp"} | Select-Object -u... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bobfrankly |
| hostname | github.com |
| expected-hostname | github.com |
| None | a556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 00f21e38abd06cd6752db5c227083570f72fdb6c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width