Skip to content

cmd: add environment variable to disable/enable 'Terminate batch job (Y/N)?' confirmation #217

@mikemaccana

Description

@mikemaccana

(migrated from PowerShell/PowerShell#7080 per @BrucePay's suggestion)

When I cancel a cmd script with Ctrl C, the following dialog pops up:

Terminate batch job (Y/N)?

I understand why this exists, but I'd also like the option to disable it, so cancelling cancels immediately. Judging by Stack Overflow, I'm not the only one

So a request: could we have an environment variable to control this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-InteractionInteracting with the vintage console window (as opposed to driving via API or hooks)Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Product-Cmd.exeThe issue is related to the legacy command interpreter, CMD.exe.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions