-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Finally clause can be canceled with CTRL + C #10457
Copy link
Copy link
Closed
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Metadata
Metadata
Assignees
Labels
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Steps to reproduce
Evaluate the above script and press CTRL + C after the message is displayed.
Expected behavior
The entire
finallyblock to complete.Actual behavior
The finally block is cancelled when CTRL + C is pressed.
Environment data
This also occurs on Windows PowerShell 5.1
Notes
If CTRL + C is pressed in the
tryblock, additional key presses in thefinallyblock will be correctly ignored. e.g.