Skip to content

When typing "exit" from CMD, WT tab doesn't exit #4736

Closed

Description

Environment

Windows build number:  Microsoft Windows [Version 10.0.18363.657]
Windows Terminal version (if applicable): 0.9.433.0

Any other software? not relevant

Steps to reproduce

open a new cmd shell in wt
type a command that doesn't work (e.g. foobarfoobar)
type exit

Expected behavior

wt tab/process should exit

Actual behavior

WT prints a message about exit code (e.g. [process exited with code 9009])
tab is "paused" as it no longer processes intput or output. wt can still be exited through the UI normally and continues to pump messages (so isn't "hung" in the technical sense).

Other Notes

This happens to me from time to time when exiting from wt. I've only seen it with cmd shell. I've seen it with various exit codes and other scenarios, but my above steps are the simplest to reproduce.

Activity

  1. ghost added
    Needs-Triage
    on Feb 27, 2020
  2. ghost added
    Needs-Tag-Fix
    on Feb 27, 2020
  3. DHowett-MSFT commented on Feb 27, 2020

    @DHowett-MSFT
    Contributor

    Alas, this is a behavior that's highly conserved across multiple shells and terminal emulators on most mainstream operating systems; more info in #4223 (comment). If you'd rather it just exit every time, set closeOnExit to true. 😄 /dup #4223.

  4. ghost closed this as completedon Feb 27, 2020
  5. ghost removed
    Needs-Triage
    on Feb 27, 2020
  6. ghost added
    Resolution-Duplicate
    on Feb 27, 2020
  7. ghost removed
    Needs-Tag-Fix
    on Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions