Ctrl+C some programs closes Terminal instead of stopping current process when running PowerShell Core #5538

Closed
opened 2026-01-31 00:15:43 +00:00 by claunia · 5 comments
Owner

Originally created by @daniefer on GitHub (Dec 12, 2019).

When attempting to stop some programs the terminal will close instead of stopping the current process. npm, ping, and cmd are the only programs I have found so far that do this. Windows Terminal used to not do this and it only started happening after an update about 15-30 days ago. I can provide more info if needed, I just don't know what else to provide.

What I have tried so far

  1. Uninstalling and Reinstalling
  2. Trying running commands in PowerShell Core without Windows Terminal

Environment

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Microsoft Windows NT 10.0.18362.0

Windows Terminal version (if applicable):
Windows Terminal (Preview)
Version: 0.7.3382.0

PowerShell Core version
6.2.3

npm version:
6.12.0

node version:
v12.13.0

cmd version:
Microsoft Windows [Version 10.0.18362.476]

Steps to reproduce

  1. Open a terminal
  2. Run cmd
    • this is not the only command that does this. npm run <script> or npm run also do it. These are just the two cases I have run across so far
  3. Enter Ctrl + C
  4. The terminal closes instead of stopping the current running process

Expected behavior

The current running process is killed

Actual behavior

The terminal closes

Originally created by @daniefer on GitHub (Dec 12, 2019). When attempting to stop some programs the terminal will close instead of stopping the current process. `npm`, `ping`, and `cmd` are the only programs I have found so far that do this. Windows Terminal used to not do this and it only started happening after an update about 15-30 days ago. I can provide more info if needed, I just don't know what else to provide. ## What I have tried so far 1. Uninstalling and Reinstalling 1. Trying running commands in PowerShell Core without Windows Terminal # Environment ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Microsoft Windows NT 10.0.18362.0 Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.7.3382.0 PowerShell Core version 6.2.3 npm version: 6.12.0 node version: v12.13.0 cmd version: Microsoft Windows [Version 10.0.18362.476] ``` # Steps to reproduce 1. Open a terminal 1. Run `cmd` * this is not the only command that does this. `npm run <script>` or `npm run` also do it. These are just the two cases I have run across so far 1. Enter `Ctrl + C` 1. The terminal closes instead of stopping the current running process # Expected behavior The current running process is killed # Actual behavior The terminal closes
claunia added the Resolution-Duplicate label 2026-01-31 00:15:43 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 12, 2019):

Did you install powershell core as a dotnet global tool? If so, #3869.

@DHowett-MSFT commented on GitHub (Dec 12, 2019): Did you install powershell core as a dotnet global tool? If so, #3869.
Author
Owner

@daniefer commented on GitHub (Dec 12, 2019):

Wholly cow! You are a god send! Thank you and sorry for the duplicate issue.

@daniefer commented on GitHub (Dec 12, 2019): Wholly cow! You are a god send! Thank you and sorry for the duplicate issue.
Author
Owner

@daniefer commented on GitHub (Dec 12, 2019):

For those looking for a resolution, use the MSI installer

@daniefer commented on GitHub (Dec 12, 2019): For those looking for a resolution, use the MSI installer
Author
Owner

@DHowett-MSFT commented on GitHub (Dec 12, 2019):

Thanks for confirming! Closing as an actual /dup of #3869.

@DHowett-MSFT commented on GitHub (Dec 12, 2019): Thanks for confirming! Closing as an actual /dup of #3869.
Author
Owner

@ghost commented on GitHub (Dec 12, 2019):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Dec 12, 2019): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5538