Title: Should $PSScriptRoot be added to foreach-object-Parallel? · Issue #15302 · PowerShell/PowerShell · GitHub
Open Graph Title: Should $PSScriptRoot be added to foreach-object-Parallel? · Issue #15302 · PowerShell/PowerShell
X Title: Should $PSScriptRoot be added to foreach-object-Parallel? · Issue #15302 · PowerShell/PowerShell
Description: Should $PSScriptRoot be added to foreach-object-Parallel? Currently, this automatic variable is not implemented. Use & "${PSScriptRoot}/xxx.ps1 in a child thread, an error will be reported. Proposed technical implementation details (opti...
Open Graph Description: Should $PSScriptRoot be added to foreach-object-Parallel? Currently, this automatic variable is not implemented. Use & "${PSScriptRoot}/xxx.ps1 in a child thread, an error will be reported. Propose...
X Description: Should $PSScriptRoot be added to foreach-object-Parallel? Currently, this automatic variable is not implemented. Use & "${PSScriptRoot}/xxx.ps1 in a child thread, an error will be reported...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/15302
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should $PSScriptRoot be added to foreach-object-Parallel?","articleBody":"# Should $PSScriptRoot be added to foreach-object-Parallel?\r\n\r\nCurrently, this automatic variable is not implemented. Use & \"${PSScriptRoot}/xxx.ps1 in a child thread, an error will be reported.\r\n\r\n## Proposed technical implementation details (optional)\r\n```\r\n xxx | ForEach-Object -Parallel {\r\n\t\t${PSScriptRoot} = $using:PSScriptRoot #default add this line\r\n\t\t& \"${PSScriptRoot}/xxx.ps1\"\r\n}\r\n```\r\n@PaulHigin \r\n\r\n","author":{"url":"https://github.com/kasini3000","@type":"Person","name":"kasini3000"},"datePublished":"2021-04-24T17:24:22Z","url":"https://github.com/PowerShell/PowerShell/issues/15302"}
| 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:23486f89-12df-ad06-a2d0-d3de78aeec12 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 97EC:EF4D6:35471E:4B2149:6AFDC4C0 |
| html-safe-nonce | db6b38dfcc9fa2d8de70a3c95752bab5efc48d706c4fbc5f29d99a66a6527dc6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0VDOkVGNEQ2OjM1NDcxRTo0QjIxNDk6NkFGREM0QzAiLCJ2aXNpdG9yX2lkIjoiNzI2MDkwMjg3Mjk1MzI0MjgxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ed22893ac710dedbf08156f38839f4fefbedf4f72382dce111a57b933cd0bdbf |
| hovercard-subject-tag | issue:866796112 |
| 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/15302/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f5556f4ef9a18d6565b08b35f24b9d58273756cb5c6830cfed86f7a74e09ef8/PowerShell/PowerShell/issues/15302 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f5556f4ef9a18d6565b08b35f24b9d58273756cb5c6830cfed86f7a74e09ef8/PowerShell/PowerShell/issues/15302 |
| og:image:alt | Should $PSScriptRoot be added to foreach-object-Parallel? Currently, this automatic variable is not implemented. Use & "${PSScriptRoot}/xxx.ps1 in a child thread, an error will be reported. Propose... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kasini3000 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9ab00cc3b4fa90bbd3da70765dd38efc23cfa9d9b0930e41feea2bf67f60ecaf |
| 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 | 1b795ba060b92691fc16c5a12cf2bf95e83432b4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width