Title: pwsh 7 can't parse path in WSL when using Windows integration · Issue #12020 · PowerShell/PowerShell · GitHub
Open Graph Title: pwsh 7 can't parse path in WSL when using Windows integration · Issue #12020 · PowerShell/PowerShell
X Title: pwsh 7 can't parse path in WSL when using Windows integration · Issue #12020 · PowerShell/PowerShell
Description: I just upgraded to pwsh 7 in my WSL instance and it causes the process to exit when using windows integration of $PATH with an error of: bad variable name: (x86)\Nvidia It persists even after removing this folder from my windows path (th...
Open Graph Description: I just upgraded to pwsh 7 in my WSL instance and it causes the process to exit when using windows integration of $PATH with an error of: bad variable name: (x86)\Nvidia It persists even after remov...
X Description: I just upgraded to pwsh 7 in my WSL instance and it causes the process to exit when using windows integration of $PATH with an error of: bad variable name: (x86)\Nvidia It persists even after remov...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/12020
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pwsh 7 can't parse path in WSL when using Windows integration","articleBody":"I just upgraded to pwsh 7 in my WSL instance and it causes the process to exit when using windows integration of $PATH with an error of: `bad variable name: (x86)\\Nvidia`\r\n\r\nIt persists even after removing this folder from my windows path (the next error is about a bad variable for `Files/Microsoft`. This only occurs when starting a fresh WSL instance and doesn't occur when running `pwsh` from bash.\r\n\r\nChanging `HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Lxss\\{YOUR_GUID}\\Flags` to 5 will disable the integration and fix this behavior. \r\n\r\nChanging the above registry key to 7 (enable integration) and using bash as your shell will also fix this behavior.\r\n\r\n# Steps to reproduce\r\n1. set your WSL shell to pwsh 7 with: `chsh -s /path/to/pwsh`\r\n2. Make sure windows integration of path is enabled in the registry: `HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Lxss\\{YOUR_GUID}` and the `Flags` key is set to 7. Setting this key to 5 turns the integration off and pwsh will start fine. Additionally setting this back to 7 and setting bash as your shell will have WSL start fine as well.\r\n3. Restart WSL and the path should fail (depending on your windows path of course).\r\n\r\n# Expected behavior\r\nPath should be properly parsed.\r\n\r\n# Actual behavior\r\nFailures related to bad variable names.\r\n\r\n# Environment data\r\n```\r\nName Value\r\n---- -----\r\nPSVersion 7.0.0\r\nPSEdition Core\r\nGitCommitId 7.0.0\r\nOS Linux 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019\r\nPlatform Unix\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/gdoenlen","@type":"Person","name":"gdoenlen"},"datePublished":"2020-03-05T02:36:20Z","url":"https://github.com/PowerShell/PowerShell/issues/12020"}
| 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:f2d30956-b710-7ecf-190e-1d5dc42885ab |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B718:1D648F:28508:3981F:6AFDF771 |
| html-safe-nonce | 7df41d8e37e01d9d43c4a049fdaed1602241d727768ca003a9aeb14439241e18 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzE4OjFENjQ4RjoyODUwODozOTgxRjo2QUZERjc3MSIsInZpc2l0b3JfaWQiOiI0OTYwMDk4OTk1ODYzMzMyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 55dc91050b1d03879d4f7f405d54783e3f88698bcfa248e168f2ce5ddd743f27 |
| hovercard-subject-tag | issue:575952317 |
| 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/12020/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1d56d6a3a759d161f92a1d9034356d3ec7b9ae543282d52f40d547c9ed5155bb/PowerShell/PowerShell/issues/12020 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1d56d6a3a759d161f92a1d9034356d3ec7b9ae543282d52f40d547c9ed5155bb/PowerShell/PowerShell/issues/12020 |
| og:image:alt | I just upgraded to pwsh 7 in my WSL instance and it causes the process to exit when using windows integration of $PATH with an error of: bad variable name: (x86)\Nvidia It persists even after remov... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdoenlen |
| hostname | github.com |
| expected-hostname | github.com |
| None | ee3343385a977757dd145b28fabf4a119780f2615a5a36c5a89f66c9b3b5616d |
| 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 | 43ae91995f6e2d5ff7a491f3de438f1f723adeaa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width