Title: Error when trying to use powershell 7.1 as default shell of ubuntu 20.04 in wsl · Issue #14055 · PowerShell/PowerShell · GitHub
Open Graph Title: Error when trying to use powershell 7.1 as default shell of ubuntu 20.04 in wsl · Issue #14055 · PowerShell/PowerShell
X Title: Error when trying to use powershell 7.1 as default shell of ubuntu 20.04 in wsl · Issue #14055 · PowerShell/PowerShell
Description: Steps to reproduce Install powershell 7.1 in wsl ubuntu 20.04, then run the following command: chsh -s /usr/bin/pwsh Restart wsl, and an error will occur. Expected behavior Start powershell in wsl ubuntu 20.04 normally. Actual behavior A...
Open Graph Description: Steps to reproduce Install powershell 7.1 in wsl ubuntu 20.04, then run the following command: chsh -s /usr/bin/pwsh Restart wsl, and an error will occur. Expected behavior Start powershell in wsl ...
X Description: Steps to reproduce Install powershell 7.1 in wsl ubuntu 20.04, then run the following command: chsh -s /usr/bin/pwsh Restart wsl, and an error will occur. Expected behavior Start powershell in wsl ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14055
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when trying to use powershell 7.1 as default shell of ubuntu 20.04 in wsl","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\nWindows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nThis repository is **ONLY** for PowerShell Core 6 and PowerShell 7+ issues.\r\n\r\n- Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases)\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://docs.microsoft.com/powershell/scripting/whats-new/known-issues-ps6).\r\n\r\n-->\r\n\r\n## Steps to reproduce\r\n\r\nInstall powershell 7.1 in wsl ubuntu 20.04, then run the following command:\r\n\r\n```sh\r\nchsh -s /usr/bin/pwsh\r\n```\r\n\r\nRestart wsl, and an error will occur.\r\n\r\n## Expected behavior\r\n\r\nStart powershell in wsl ubuntu 20.04 normally.\r\n\r\n## Actual behavior\r\nAn error occured:\r\n\r\n```none\r\n: 6: export: (x86)/Dev-Cpp/TDM-GCC-64/bin:/mnt/c/Program: bad variable name\r\n```\r\n(Maybe pwsh will load all Windows PATH before running wsl, `C:\\Program Files (x86)\\Dev-Cpp\\TDM-GCC-64\\bin` is the first in my PATH)\r\n\r\n## Environment data\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.1.0\r\nPSEdition Core\r\nGitCommitId 7.1.0\r\nOS Linux 4.4.0-19041-Microsoft #488-Microsoft Mon Sep 01 13:43:00 PST 2020\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/HCl-10","@type":"Person","name":"HCl-10"},"datePublished":"2020-11-12T12:06:28Z","url":"https://github.com/PowerShell/PowerShell/issues/14055"}
| 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:aba23fa4-fd8e-a736-d340-60ba93c851f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFCC:88C2A:6A0EA5:92A19F:6AFDED85 |
| html-safe-nonce | f54dac155b7adab9f27dda5619a8dcce84d7ad1956c58601cdfd66064f768717 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkNDOjg4QzJBOjZBMEVBNTo5MkExOUY6NkFGREVEODUiLCJ2aXNpdG9yX2lkIjoiODk3MTYzMjEwNDA3Njg2NDkwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ab6a463a7311c71e59eede0d0b8230342aaa3dbb60aa55635b630d237623c774 |
| hovercard-subject-tag | issue:741545353 |
| 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/14055/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e674f901be1b6bebafba8c751e3a0462f6e347dbdd3d83fd33800bf752929982/PowerShell/PowerShell/issues/14055 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e674f901be1b6bebafba8c751e3a0462f6e347dbdd3d83fd33800bf752929982/PowerShell/PowerShell/issues/14055 |
| og:image:alt | Steps to reproduce Install powershell 7.1 in wsl ubuntu 20.04, then run the following command: chsh -s /usr/bin/pwsh Restart wsl, and an error will occur. Expected behavior Start powershell in wsl ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HCl-10 |
| hostname | github.com |
| expected-hostname | github.com |
| None | dd812ec581ecac95855f5ec917ef9827506c39a9da1443f43ddb4179a46471eb |
| 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 | 32ac708bac264dafdc28e10ff49b4d137f0c34a7 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width