Title: Select-Object default output formatting is situationally broken · Issue #10762 · PowerShell/PowerShell · GitHub
Open Graph Title: Select-Object default output formatting is situationally broken · Issue #10762 · PowerShell/PowerShell
X Title: Select-Object default output formatting is situationally broken · Issue #10762 · PowerShell/PowerShell
Description: The test command below should yield: Length ------ 3 but currently yields: @{Length=3} The problem may be specific to [string] input (a rare scenario) - not sure what the underlying pattern is. Steps to reproduce 'one' | Select-Object Le...
Open Graph Description: The test command below should yield: Length ------ 3 but currently yields: @{Length=3} The problem may be specific to [string] input (a rare scenario) - not sure what the underlying pattern is. Ste...
X Description: The test command below should yield: Length ------ 3 but currently yields: @{Length=3} The problem may be specific to [string] input (a rare scenario) - not sure what the underlying pattern is. Ste...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10762
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Select-Object default output formatting is situationally broken","articleBody":"The test command below _should_ yield:\r\n\r\n```\r\nLength\r\n------\r\n 3\r\n```\r\n\r\nbut currently yields:\r\n\r\n```\r\n@{Length=3}\r\n```\r\n\r\nThe problem may be specific to `[string]` input (a rare scenario) - not sure what the underlying pattern is.\r\n\r\n# Steps to reproduce\r\n\r\n```powershell\r\n'one' | Select-Object Length | Out-String | Should -not -match '@'\r\n```\r\n\r\n# Expected behavior\r\n\r\nThe test should pass.\r\n\r\n# Actual behavior\r\n\r\nThe test fails.\r\n\r\n```none\r\nExpected regular expression '@' to not match '@{Length=3}\r\n', but it did match.\r\n```\r\n\r\n# Environment data\r\n\r\n\r\n```none\r\nPowerShell Core 7.0.0-preview.4\r\n```\r\n","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2019-10-10T17:13:15Z","url":"https://github.com/PowerShell/PowerShell/issues/10762"}
| 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:455bec1f-1fd7-c333-9557-c67ab076ff61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A656:3B3584:1F7714:2A2086:6AFD44A8 |
| html-safe-nonce | b9076f8230c0e07c200c21bd1007105073e0146a4a09e1f95a8f4ef74a17eccd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjU2OjNCMzU4NDoxRjc3MTQ6MkEyMDg2OjZBRkQ0NEE4IiwidmlzaXRvcl9pZCI6IjE1Nzk4MjAyMzE3NTkzMTYxMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56419ade091817bd2cbef2d608118f251e06b9d2c894fa12160dda59342fcf9b |
| hovercard-subject-tag | issue:505401655 |
| 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/10762/issue_layout |
| twitter:image | https://opengraph.githubassets.com/724b66c91a553c18a8927d12fb09367b4708306d577559ae6a74657d159c9328/PowerShell/PowerShell/issues/10762 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/724b66c91a553c18a8927d12fb09367b4708306d577559ae6a74657d159c9328/PowerShell/PowerShell/issues/10762 |
| og:image:alt | The test command below should yield: Length ------ 3 but currently yields: @{Length=3} The problem may be specific to [string] input (a rare scenario) - not sure what the underlying pattern is. Ste... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | bdbacc25b921224ff0befcb9e629560a1255be51aec9991d6e3f95b5e9151474 |
| 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 | 556dd37bb0aceffb25724e151b5d858b3265b40b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width