Tab won't close after entering exit in Ubuntu-18.04, Linux and CMD. #6978

Open
opened 2026-01-31 00:52:18 +00:00 by claunia · 0 comments
Owner

Originally created by @Idov31 on GitHub (Mar 18, 2020).

When I enter an invalid command and afterward entering exit the result is that the tab is still open and just showing [process exited with code 127] without actually closing the tab if it is Linux or Ubuntu and [process exited with code 9009] if it is CMD. The tab is not usable, but just showing the message mentioned above. It happens only after I enter an invalid command. Photos attached below.

Environment

Windows build number: 1909
Windows Terminal version (if applicable): 0.10.761.0

Any other software?
No

Steps to reproduce

Need to check the way that the command exit works in the specific cases that mentioned and fix it so it'll work like in the PowerShell terminal (I tried the same there but didn't face an issue).

Expected behavior

The tab to be closed, just like after entering a valid command.

Actual behavior

The tab remains open and unavailable to use, just showing the message [process exited with code 127].

cmd_exit
linux_generated_command
linux_terminated
ubuntu_generated_command
ubuntu_terminated

Originally created by @Idov31 on GitHub (Mar 18, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> When I enter an invalid command and afterward entering exit the result is that the tab is still open and just showing [process exited with code 127] without actually closing the tab if it is Linux or Ubuntu and [process exited with code 9009] if it is CMD. The tab is not usable, but just showing the message mentioned above. It happens only after I enter an invalid command. Photos attached below. # Environment Windows build number: 1909 Windows Terminal version (if applicable): 0.10.761.0 Any other software? No # Steps to reproduce Need to check the way that the command exit works in the specific cases that mentioned and fix it so it'll work like in the PowerShell terminal (I tried the same there but didn't face an issue). # Expected behavior The tab to be closed, just like after entering a valid command. # Actual behavior The tab remains open and unavailable to use, just showing the message [process exited with code 127]. ![cmd_exit](https://user-images.githubusercontent.com/62358580/77009934-7e55e200-6971-11ea-84a8-f6dbfebc0e7f.png) ![linux_generated_command](https://user-images.githubusercontent.com/62358580/77009938-7f870f00-6971-11ea-9e1d-c0c2b09581b6.png) ![linux_terminated](https://user-images.githubusercontent.com/62358580/77009939-801fa580-6971-11ea-939e-69b4cd66f4e7.png) ![ubuntu_generated_command](https://user-images.githubusercontent.com/62358580/77009942-801fa580-6971-11ea-8031-1c16bdb32c95.png) ![ubuntu_terminated](https://user-images.githubusercontent.com/62358580/77009947-80b83c00-6971-11ea-8a1e-fe90e1e5e501.png)
claunia added the Resolution-Duplicate label 2026-01-31 00:52:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6978