-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Labels
Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingIt's a new issue that the core contributor team needs to triage at the next triage meetingResolution-By-DesignIt's supposed to be this way. Sometimes for compatibility reasons.It's supposed to be this way. Sometimes for compatibility reasons.
Description
Environment
Windows build number: Microsoft Windows [Version 10.0.18362.356]
Windows Terminal version: v0.8.10091.0
I'm using the zsh shell.
The "closeOnExit" setting set to `true`, but the behavior is the same regardless.
Steps to reproduce
- Open Windows Terminal
- Run a command or execute a program that exits with a code other than 0
- Press Ctrl+D
Expected behavior
Terminal window (or tab) is closed as if the exit command was given.
Actual behavior
Terminal prints a new line and then [process exited with code 127] (the number being the previous command's exit code), and finally an input prompt on the same line, but no text input is accepted. Terminal session is halted and doesn't accept input (surrounding UI and new tabs do work).
I believe this behavior is new in the 0.8... version and didn't exist in the previous official preview release. Running the same WSL environment via cmd.exe also behaves as expected, immediately closing the command line after entering the EOF code.
Also in other exit code cases (such as giving Ctrl+D directly to a fresh terminal), Windows Terminal exits as expected.
dtbarne, dan1994, stevenpall, trusche, ElSamhaa and 2 more
Metadata
Metadata
Assignees
Labels
Needs-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsNeeds-TriageIt's a new issue that the core contributor team needs to triage at the next triage meetingIt's a new issue that the core contributor team needs to triage at the next triage meetingResolution-By-DesignIt's supposed to be this way. Sometimes for compatibility reasons.It's supposed to be this way. Sometimes for compatibility reasons.
