Title: PSNotApplyErrorActionToStderr does not work as expected with ForEach-Object -Parallel · Issue #14602 · PowerShell/PowerShell · GitHub
Open Graph Title: PSNotApplyErrorActionToStderr does not work as expected with ForEach-Object -Parallel · Issue #14602 · PowerShell/PowerShell
X Title: PSNotApplyErrorActionToStderr does not work as expected with ForEach-Object -Parallel · Issue #14602 · PowerShell/PowerShell
Description: Steps to reproduce Enable PSNotApplyErrorActionToStderr - no longer needed $ErrorActionPreference = 'Stop' @(1,2,3) | ForEach-Object -Parallel { cmd.exe /c "echo $_ >&2" } Expected behavior Process all records, with no error records prod...
Open Graph Description: Steps to reproduce Enable PSNotApplyErrorActionToStderr - no longer needed $ErrorActionPreference = 'Stop' @(1,2,3) | ForEach-Object -Parallel { cmd.exe /c "echo $_ >&2" } Expected behavior Process...
X Description: Steps to reproduce Enable PSNotApplyErrorActionToStderr - no longer needed $ErrorActionPreference = 'Stop' @(1,2,3) | ForEach-Object -Parallel { cmd.exe /c "echo $_ >&2" } ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14602
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PSNotApplyErrorActionToStderr does not work as expected with ForEach-Object -Parallel","articleBody":"## Steps to reproduce\r\n\r\n~~Enable `PSNotApplyErrorActionToStderr`~~ - no longer needed\r\n\r\n```powershell\r\n$ErrorActionPreference = 'Stop'\r\n@(1,2,3) | ForEach-Object -Parallel { cmd.exe /c \"echo $_ >&2\" }\r\n```\r\n\r\n## Expected behavior\r\n\r\nProcess all records, with no error records produced:\r\n\r\n```none\r\n1\r\n2\r\n3\r\n```\r\n\r\n## Actual behavior\r\n\r\nStops after first record, produces an error record for native command stderr:\r\n```none\r\n1 # in red\r\n```\r\n\r\n## Environment data\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.1.0\r\nPSEdition Core\r\nGitCommitId 7.1.0\r\nOS Microsoft Windows 10.0.20206\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/aelij","@type":"Person","name":"aelij"},"datePublished":"2021-01-12T14:14:48Z","url":"https://github.com/PowerShell/PowerShell/issues/14602"}
| 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:99923c29-4a47-1aa6-d356-4a078490c20d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DBE4:118D04:5E00DC:8763D3:6AFDD3A1 |
| html-safe-nonce | 072312de06151c03792dd9e9e4d881f5d77b694a85477b9631baac5555402947 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkU0OjExOEQwNDo1RTAwREM6ODc2M0QzOjZBRkREM0ExIiwidmlzaXRvcl9pZCI6IjY3NDQyODE1ODA3MDI2NTEyOTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f57a6b575a15ce6e44cfb5e640c2391af9d5bffedfc11dc53a6d52c1369ab15e |
| hovercard-subject-tag | issue:784275464 |
| 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/14602/issue_layout |
| twitter:image | https://opengraph.githubassets.com/56c3b3e53580bd804cbf364f8fd2c973c8a3d191e097f973290d9bd3240401e9/PowerShell/PowerShell/issues/14602 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/56c3b3e53580bd804cbf364f8fd2c973c8a3d191e097f973290d9bd3240401e9/PowerShell/PowerShell/issues/14602 |
| og:image:alt | Steps to reproduce Enable PSNotApplyErrorActionToStderr - no longer needed $ErrorActionPreference = 'Stop' @(1,2,3) | ForEach-Object -Parallel { cmd.exe /c "echo $_ >&2" } Expected behavior Process... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aelij |
| hostname | github.com |
| expected-hostname | github.com |
| None | 26886a40b582b821a7a76351e0a2f42b6d6160854b6e2520db24f31fd7be5da7 |
| 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 | 68ebaa631a1d248d69ebde4b9c5defd3a19aeb2f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width