Terminal stuck on non 0 exit code #11033

Open
opened 2026-01-31 02:36:53 +00:00 by claunia · 0 comments
Owner

Originally created by @mastoj on GitHub (Oct 15, 2020).

I'm not sure if this is by design or not, but I don't think this was the case before. It seems like whenever I get a non 0 exit code the shell I'm in exits. I don't think that was the case before.

Reproduction step:

➜ az login
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXX to authenticate.
^C
[process exited with code 1]

In the example above the tab hangs and I need to close it. After pressing ctrl-c I thought I would get back to the prompt, instead I now need to exit the tab, create a new one and navigate to folder again to continue working.

This happens with more than just az, but this was the easiest way to reproduce.

Environment:

  • Win32NT 10.0.19042.0 Microsoft Windows NT 10.0.19042.0
  • WSL2
  • Windows terminal 1.3.2651.0
  • Ubuntu 18.04
Originally created by @mastoj on GitHub (Oct 15, 2020). I'm not sure if this is by design or not, but I don't think this was the case before. It seems like whenever I get a non 0 exit code the shell I'm in exits. I don't think that was the case before. Reproduction step: ``` ➜ az login To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXX to authenticate. ^C [process exited with code 1] ``` In the example above the tab hangs and I need to close it. After pressing `ctrl-c` I thought I would get back to the prompt, instead I now need to exit the tab, create a new one and navigate to folder again to continue working. This happens with more than just `az`, but this was the easiest way to reproduce. Environment: * Win32NT 10.0.19042.0 Microsoft Windows NT 10.0.19042.0 * WSL2 * Windows terminal 1.3.2651.0 * Ubuntu 18.04
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 02:36:53 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11033