Title: OS environment variable mappings should be better specified/implemented · Issue #1262 · PowerShell/PowerShell · GitHub
Open Graph Title: OS environment variable mappings should be better specified/implemented · Issue #1262 · PowerShell/PowerShell
X Title: OS environment variable mappings should be better specified/implemented · Issue #1262 · PowerShell/PowerShell
Description: System.Management.Automation.Environment.GetEnvironmentVariable(string) maps some environment variables when they do not exist: OS => "linux" COMPUTERNAME => HOSTNAME USERNAME => USER HOMEPATH => HOME USERPROFILE => HOME TMP => TMPDIR TE...
Open Graph Description: System.Management.Automation.Environment.GetEnvironmentVariable(string) maps some environment variables when they do not exist: OS => "linux" COMPUTERNAME => HOSTNAME USERNAME => USER HOMEPATH => H...
X Description: System.Management.Automation.Environment.GetEnvironmentVariable(string) maps some environment variables when they do not exist: OS => "linux" COMPUTERNAME => HOSTNAME USERNAME =>...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/1262
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OS environment variable mappings should be better specified/implemented","articleBody":"`System.Management.Automation.Environment.GetEnvironmentVariable(string)` maps some environment variables when they do not exist:\n\n```\nOS => \"linux\"\nCOMPUTERNAME => HOSTNAME\nUSERNAME => USER\nHOMEPATH => HOME\nUSERPROFILE => HOME\nTMP => TMPDIR\nTEMP => TMPDIR\n```\n\nThere are a couple issues with this.\n1. They aren't true environment variables, so child processes won't see $env:HOMEPATH or $env:OS\n2. There is no mapping back to Windows\n3. Other possibly useful Windows env vars aren't there, like ProgramFiles, AppData, or LocalAppData\n\nIf we keep what we have (for portability), I think it's better to define these variables as proper environment variables at startup rather than map them when they are accessed.\n\nRegarding bullet 3, I think these map to XDG directories - do we expose those as an api or env vars?\n","author":{"url":"https://github.com/lzybkr","@type":"Person","name":"lzybkr"},"datePublished":"2016-07-01T21:29:01Z","url":"https://github.com/PowerShell/PowerShell/issues/1262"}
| 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:17866620-116c-242a-a1bf-9aef47f88cf9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB40:4E4F7:7F6DD:B01C8:6AFD7AC4 |
| html-safe-nonce | 411aafeca27683c4c7529671ca235ec47ff30a9a0cd62c5df0b138c55d8cff6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjQwOjRFNEY3OjdGNkREOkIwMUM4OjZBRkQ3QUM0IiwidmlzaXRvcl9pZCI6IjQ5MzMzNDk2OTMxMTY0ODAxOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9f92e33923d0bca1bbce33f4f2db1a7ac9f34d66d4b15d48b5431b679480964 |
| hovercard-subject-tag | issue:163477168 |
| 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/1262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea6b0b47f8848fe06bad5887cf7aa487e181d66c09cad14fc2e738750b21c083/PowerShell/PowerShell/issues/1262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea6b0b47f8848fe06bad5887cf7aa487e181d66c09cad14fc2e738750b21c083/PowerShell/PowerShell/issues/1262 |
| og:image:alt | System.Management.Automation.Environment.GetEnvironmentVariable(string) maps some environment variables when they do not exist: OS => "linux" COMPUTERNAME => HOSTNAME USERNAME => USER HOMEPATH => H... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lzybkr |
| 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