machine icon indicating copy to clipboard operation
machine copied to clipboard

Powershell instance not properly detected when spawned from Command Prompt

Open spowelljr opened this issue 4 years ago • 0 comments

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.

spowelljr avatar Jul 19 '21 20:07 spowelljr