Title: Fix `$env:PSModulePath` for starting powershell within pwsh and vice versa · Issue #9957 · PowerShell/PowerShell · GitHub
Open Graph Title: Fix `$env:PSModulePath` for starting powershell within pwsh and vice versa · Issue #9957 · PowerShell/PowerShell
X Title: Fix `$env:PSModulePath` for starting powershell within pwsh and vice versa · Issue #9957 · PowerShell/PowerShell
Description: Based on @PowerShell/powershell-committee decision at PowerShell/PowerShell-RFC#133 (comment), we should: PSCore6 currently will create $env:PSModulePath from config.json file, a new setting EnvVarToAppendToPSModulePath with value PSModu...
Open Graph Description: Based on @PowerShell/powershell-committee decision at PowerShell/PowerShell-RFC#133 (comment), we should: PSCore6 currently will create $env:PSModulePath from config.json file, a new setting EnvVar...
X Description: Based on @PowerShell/powershell-committee decision at PowerShell/PowerShell-RFC#133 (comment), we should: PSCore6 currently will create $env:PSModulePath from config.json file, a new setting EnvVar...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/9957
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix `$env:PSModulePath` for starting powershell within pwsh and vice versa","articleBody":"Based on @PowerShell/powershell-committee decision at https://github.com/PowerShell/PowerShell-RFC/pull/133#issuecomment-467192489, we should:\r\n\r\n- PSCore6 currently will create $env:PSModulePath from config.json file, a new setting EnvVarToAppendToPSModulePath with value PSModulePath (this means the $PSHOME/Modules and user paths are first, then appends the $env:PSModulePath from the system)\r\n- Some logic needs to be retained so child PSCore6 trims any duplicates in $env:PSModulePath\r\n- When pwsh is started, we preserve the original $env:PSModulePath. Have whitelist to special case powershell.exe and powershell_ise.exe so when they are started within pwsh, they receive the original $env:PSModulePath. In all other cases, they inherit the current $env:PSModulePath.\r\n- Since modules are auto-discovered by newest version and not by order of the path, there is a scenario where starting different versions of pwsh from pwsh may result in unexpected behavior.","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2019-06-19T23:08:58Z","url":"https://github.com/PowerShell/PowerShell/issues/9957"}
| 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:332d8924-e241-0458-c5f7-17de619a7528 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3FE:3988CF:201AD:2C5DE:6AFD3937 |
| html-safe-nonce | f72a0810162300150dd7902e1f440e2cb25f48f8eb82ed7ec9432b36be25161a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0ZFOjM5ODhDRjoyMDFBRDoyQzVERTo2QUZEMzkzNyIsInZpc2l0b3JfaWQiOiIyNTE2MjYwODQxODg4NDk1OTI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 45b18f48d02dc8f48fa0b887bb65035843fdb8ad379c550ebbeb255da6a1e519 |
| hovercard-subject-tag | issue:458264005 |
| 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/9957/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ec8fdec05bb83d666dff7fc7cd147a1ee311211f9d02a9ca0318cd50ecc39cd/PowerShell/PowerShell/issues/9957 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ec8fdec05bb83d666dff7fc7cd147a1ee311211f9d02a9ca0318cd50ecc39cd/PowerShell/PowerShell/issues/9957 |
| og:image:alt | Based on @PowerShell/powershell-committee decision at PowerShell/PowerShell-RFC#133 (comment), we should: PSCore6 currently will create $env:PSModulePath from config.json file, a new setting EnvVar... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| 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