Title: Shouldn't PSMODULEPATH use [System.IO.Path]::PathSeparator? · Issue #1585 · PowerShell/PowerShell · GitHub
Open Graph Title: Shouldn't PSMODULEPATH use [System.IO.Path]::PathSeparator? · Issue #1585 · PowerShell/PowerShell
X Title: Shouldn't PSMODULEPATH use [System.IO.Path]::PathSeparator? · Issue #1585 · PowerShell/PowerShell
Description: It appears that although [IO.Path]::PathSeparator is correctly set to colon, the PSMODULEPATH is using semicolon: Expected behavior I should be able to separate path variables using the PathSeparator, like I can on Windows: PS > $Env:PSM...
Open Graph Description: It appears that although [IO.Path]::PathSeparator is correctly set to colon, the PSMODULEPATH is using semicolon: Expected behavior I should be able to separate path variables using the PathSeparat...
X Description: It appears that although [IO.Path]::PathSeparator is correctly set to colon, the PSMODULEPATH is using semicolon: Expected behavior I should be able to separate path variables using the PathSeparat...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1585
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Shouldn't PSMODULEPATH use [System.IO.Path]::PathSeparator?","articleBody":"It appears that although `[IO.Path]::PathSeparator` is correctly set to colon, the PSMODULEPATH is using semicolon:\n## Expected behavior\n\nI should be able to separate path variables using the PathSeparator, like I can on Windows:\n\n```\nPS > $Env:PSMODULEPATH -split [System.IO.Path]::PathSeparator\nC:\\Users\\Joel\\OneDrive\\Documents\\WindowsPowerShell\\Modules\nC:\\Program Files\\WindowsPowerShell\\Modules\nC:\\Windows\\System32\\WindowsPowerShell\\v1.0\\Modules\nC:\\Users\\Joel\\Projects\\Modules\n```\n## Actual behavior\n\n```\nPS > $Env:PSMODULEPATH -split [System.IO.Path]::PathSeparator\n\n/root/.local/share/powershell/Modules;;/opt/microsoft/powershell/Modules\n```\n## Environment data\n\n\u003c!-- provide the output of $PSVersionTable -->\n\n``` powershell\nPS > $PSVersionTable\n\nName Value\n---- -----\nPSVersion 5.1.10032.0\nPSEdition PowerShellCore\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nBuildVersion 3.0.0.0\nGitCommitId v6.0.0-alpha.7\nCLRVersion\nWSManStackVersion 3.0\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\n```\n","author":{"url":"https://github.com/Jaykul","@type":"Person","name":"Jaykul"},"datePublished":"2016-08-01T04:20:37Z","url":"https://github.com/PowerShell/PowerShell/issues/1585"}
| 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:f8945658-c0a9-00b6-b287-b94957993ea4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A448:2014BA:687FFD:962741:6AFD7A79 |
| html-safe-nonce | 6e5c54b33c0e0dc3776d22803b98dcc66444d50ff3c6c84c23dbf1fab8937c0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDQ4OjIwMTRCQTo2ODdGRkQ6OTYyNzQxOjZBRkQ3QTc5IiwidmlzaXRvcl9pZCI6IjQ3MTc4ODc1MjE5MzE3NTQxMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a6ac637127a307a4d021c15488c60ffcb5ce658c5a8c4c617cc026e977ff2fea |
| hovercard-subject-tag | issue:168563626 |
| 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/1585/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8eccc38290324651cfd499598c26aca2bdcecb1239aeb1697f1121d25ab682e/PowerShell/PowerShell/issues/1585 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8eccc38290324651cfd499598c26aca2bdcecb1239aeb1697f1121d25ab682e/PowerShell/PowerShell/issues/1585 |
| og:image:alt | It appears that although [IO.Path]::PathSeparator is correctly set to colon, the PSMODULEPATH is using semicolon: Expected behavior I should be able to separate path variables using the PathSeparat... |
| 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 | 544ff6b59bd215c4609120f6e334dbd0b00d34fb6f8bc03a476f72256998887e |
| 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 | 71c92f8b27ec5e9aa6f6477b4e067a4727fc9edb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width