Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Powershell instance not properly detected when spawned from Command Prompt #4891

Open
spowelljr opened this issue Jul 19, 2021 · 0 comments
Open

Comments

@spowelljr
Copy link

For CI testing Windows in minikube we SSH into a Windows machine, which starts us in Command Prompt. We then run powershell to change the terminal to Powershell. However, within the Powershell terminal the SHELL environment variable is still pointing to Command Prompt (c:\windows\system32\cmd.exe). So when running the exported function shell.Detect here it returns cmd instead of the expected powershell.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant