Skip to content

CLI: Prevent nonsensical interactive invocation with -NonInteractive #13518

@mklement0

Description

@mklement0

Steps to reproduce

pwsh -NonInteractive

Expected behavior

An error should be reported indicating that this invocation makes no sense.

Actual behavior

An interactive session is entered, but any later attempts to use Read-Host or confirmation prompts in the session will cause statement-terminating errors.

Environment data

PowerShell Core 7.1.0-preview.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentation Needed in this repoDocumentation is needed in this repoIssue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions