Title: Calling powershell.exe in PSCore6 on Windows starts Windows PowerShell · Issue #4194 · PowerShell/PowerShell · GitHub
Open Graph Title: Calling powershell.exe in PSCore6 on Windows starts Windows PowerShell · Issue #4194 · PowerShell/PowerShell
X Title: Calling powershell.exe in PSCore6 on Windows starts Windows PowerShell · Issue #4194 · PowerShell/PowerShell
Description: On Windows, $env:Path has Windows PowerShell in the path before $PSHOME which means that if you're in PowerShell Core 6 and type powershell, it starts Windows PowerShell 5.1 instead of a nested instance of PowerShell Core 6. This may be ...
Open Graph Description: On Windows, $env:Path has Windows PowerShell in the path before $PSHOME which means that if you're in PowerShell Core 6 and type powershell, it starts Windows PowerShell 5.1 instead of a nested ins...
X Description: On Windows, $env:Path has Windows PowerShell in the path before $PSHOME which means that if you're in PowerShell Core 6 and type powershell, it starts Windows PowerShell 5.1 instead of a nested...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/4194
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Calling powershell.exe in PSCore6 on Windows starts Windows PowerShell","articleBody":"On Windows, `$env:Path` has Windows PowerShell in the path before `$PSHOME` which means that if you're in PowerShell Core 6 and type `powershell`, it starts Windows PowerShell 5.1 instead of a nested instance of PowerShell Core 6. This may be unexpected for end users as it seems that one would expect `powershell` to refer to the currently running version of PowerShell.\r\n\r\nThe immediate impact is that partner teams running existing PowerShell script tests in PowerShell Core 6 that spawn `powershell` will get incorrect results as that process is running Windows PowerShell.\r\n\r\ncc @joeyaiello @HemantMahawar \r\n\r\n\u003c!--\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](../docs/FAQ.md).\r\n- Refer to the [known issues](../docs/KNOWNISSUES.md).\r\n- Fill out the following repro template\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n--\u003e\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```powershell\r\n# within PowerShell Core 6\r\npowershell\r\n$psversiontable\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\nPowerShell Core 6\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nWindows PowerShell 5.1\r\n```\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable --\u003e\r\n\r\n```powershell\r\nName Value\r\n---- -----\r\nPSVersion 6.0.0-beta\r\nPSEdition Core\r\nGitCommitId v6.0.0-beta.3\r\nOS Microsoft Windows 10.0.16225\r\nPlatform Win32NT\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/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2017-07-06T17:00:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/4194/PowerShell/issues/4194"}
| 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:b8a12c83-c5b9-2cf2-7ca0-6549c4a9c347 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D824:2286B:3BA47C:50AE0B:6A57FFCB |
| html-safe-nonce | 935e1b1c5e719dbe5de489340dfa817dca28068893c0eb5143511d74cd1d7aeb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODI0OjIyODZCOjNCQTQ3Qzo1MEFFMEI6NkE1N0ZGQ0IiLCJ2aXNpdG9yX2lkIjoiNjk5MDYwNDg0ODUzOTg5MzcwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d46c4541fa798061ed8a0a4384bc8e71aa932da05c4f683eb5eddb6b50433d5b |
| hovercard-subject-tag | issue:241022728 |
| 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/4194/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b859955811bdb5879d1de36fc91c2633b55d36258a8d291aa215b1b35b38ddc8/PowerShell/PowerShell/issues/4194 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b859955811bdb5879d1de36fc91c2633b55d36258a8d291aa215b1b35b38ddc8/PowerShell/PowerShell/issues/4194 |
| og:image:alt | On Windows, $env:Path has Windows PowerShell in the path before $PSHOME which means that if you're in PowerShell Core 6 and type powershell, it starts Windows PowerShell 5.1 instead of a nested ins... |
| 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 | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| 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 | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width