Title: Indexing doesn't work for a Hashtable with an array key · Issue #9580 · PowerShell/PowerShell · GitHub
Open Graph Title: Indexing doesn't work for a Hashtable with an array key · Issue #9580 · PowerShell/PowerShell
X Title: Indexing doesn't work for a Hashtable with an array key · Issue #9580 · PowerShell/PowerShell
Description: Steps to reproduce $s = @("hello") $hash = @{ $s = 'Yay' } $hash.Contains($s) > True $hash[$s] Expected behavior $hash[$s] > Yay Actual behavior $hash[$s] returns nothing Environment data Name Value ---- ----- PSVersion 6.2.0 PSEdition C...
Open Graph Description: Steps to reproduce $s = @("hello") $hash = @{ $s = 'Yay' } $hash.Contains($s) > True $hash[$s] Expected behavior $hash[$s] > Yay Actual behavior $hash[$s] returns nothing Environment data Name Valu...
X Description: Steps to reproduce $s = @("hello") $hash = @{ $s = 'Yay' } $hash.Contains($s) > True $hash[$s] Expected behavior $hash[$s] > Yay Actual behavior $hash[$s] returns nothing En...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9580
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Indexing doesn't work for a Hashtable with an array key","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 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-->\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n$s = @(\"hello\")\r\n$hash = @{ $s = 'Yay' }\r\n$hash.Contains($s)\r\n> True\r\n$hash[$s]\r\n```\r\n\r\n# Expected behavior\r\n\r\n```none\r\n$hash[$s]\r\n> Yay\r\n```\r\n\r\n# Actual behavior\r\n\r\n`$hash[$s]` returns nothing\r\n\r\n# Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 6.2.0\r\nPSEdition Core\r\nGitCommitId 6.2.0\r\nOS Microsoft Windows 10.0.17763\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/daxian-dbw","@type":"Person","name":"daxian-dbw"},"datePublished":"2019-05-12T04:46:32Z","url":"https://github.com/PowerShell/PowerShell/issues/9580"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:0064b17a-977c-7ef5-846e-aac8abfb845f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A24:27B193:102FF5:15FD74:6AFE14A4 |
| html-safe-nonce | 2c852926c08b874fd0a4d2ebfb0a71c215862536926689b2d529d5587af22322 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTI0OjI3QjE5MzoxMDJGRjU6MTVGRDc0OjZBRkUxNEE0IiwidmlzaXRvcl9pZCI6IjQ2MTc1MjY3Njc3MjMwOTExMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9f427afe1675afa42ee0aef0cb0bd9f85bb0edddeccbbcbeff875af2801ca531 |
| hovercard-subject-tag | issue:443064170 |
| 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/9580/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a5884aacb5885bfdd5f1a0799c2a823b65c6bb6067b81a5fec4b7583aa706fdd/PowerShell/PowerShell/issues/9580 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a5884aacb5885bfdd5f1a0799c2a823b65c6bb6067b81a5fec4b7583aa706fdd/PowerShell/PowerShell/issues/9580 |
| og:image:alt | Steps to reproduce $s = @("hello") $hash = @{ $s = 'Yay' } $hash.Contains($s) > True $hash[$s] Expected behavior $hash[$s] > Yay Actual behavior $hash[$s] returns nothing Environment data Name Valu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daxian-dbw |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af |
| 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 | 05539640a34afe6142a519483d78ddd766a1304a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width