Title: Select-Object -First populates `-ErrorVariable` · Issue #9185 · PowerShell/PowerShell · GitHub
Open Graph Title: Select-Object -First populates `-ErrorVariable` · Issue #9185 · PowerShell/PowerShell
X Title: Select-Object -First populates `-ErrorVariable` · Issue #9185 · PowerShell/PowerShell
Description: Steps to reproduce & { [CmdletBinding()]param() 1,2,3,4 | Select -First 1 } -ErrorVariable Problems; $Problems | Format-List * -Force Expected behavior There are no errors, so $Problems should be empty. Actual behavior $Problems has Stop...
Open Graph Description: Steps to reproduce & { [CmdletBinding()]param() 1,2,3,4 | Select -First 1 } -ErrorVariable Problems; $Problems | Format-List * -Force Expected behavior There are no errors, so $Problems should be e...
X Description: Steps to reproduce & { [CmdletBinding()]param() 1,2,3,4 | Select -First 1 } -ErrorVariable Problems; $Problems | Format-List * -Force Expected behavior There are no errors, so $Problems should ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9185
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Select-Object -First populates `-ErrorVariable`","articleBody":"# Steps to reproduce\r\n\r\n```powershell\r\n& {\r\n [CmdletBinding()]param()\r\n 1,2,3,4 | Select -First 1\r\n} -ErrorVariable Problems; \r\n$Problems | Format-List * -Force\r\n```\r\n\r\n# Expected behavior\r\n\r\nThere are no errors, so `$Problems` should be **empty**.\r\n\r\n# Actual behavior\r\n\r\n`$Problems` has `StopUpstreamCommandsException` which `Select-Object -First` threw.\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.1.3\r\nPSEdition Core\r\nGitCommitId 6.1.3\r\nOS Microsoft Windows 10.0.18353\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```\r\n","author":{"url":"https://github.com/Jaykul","@type":"Person","name":"Jaykul"},"datePublished":"2019-03-21T16:34:41Z","url":"https://github.com/PowerShell/PowerShell/issues/9185"}
| 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:c1bedd59-461d-3d89-df13-9dd3428ecce5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D058:3FCED0:6B06B:91393:6AFD48D0 |
| html-safe-nonce | 584cbfaa376476870ffe2426eb180787848a099811ac728034fcc6feb25761db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDU4OjNGQ0VEMDo2QjA2Qjo5MTM5Mzo2QUZENDhEMCIsInZpc2l0b3JfaWQiOiI1MzI2OTk4NTIwMTA1MDY0NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 510e9be015127fbe5d63522c17c05f0caca812fb7fbe27fcd0d771f80ed3fef8 |
| hovercard-subject-tag | issue:423827419 |
| 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/9185/issue_layout |
| twitter:image | https://opengraph.githubassets.com/367597127548da5d7473fa28122a9c7a67e5a1a241df30c7c87a343537cb4263/PowerShell/PowerShell/issues/9185 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/367597127548da5d7473fa28122a9c7a67e5a1a241df30c7c87a343537cb4263/PowerShell/PowerShell/issues/9185 |
| og:image:alt | Steps to reproduce & { [CmdletBinding()]param() 1,2,3,4 | Select -First 1 } -ErrorVariable Problems; $Problems | Format-List * -Force Expected behavior There are no errors, so $Problems should be e... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Jaykul |
| 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