Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

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

@spowelljr

Description

@spowelljr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions