[PR #4172] [MERGED] when spawning a pty, be sure to provide & escape conhost's path #25671

Open
opened 2026-01-31 09:11:00 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/4172
Author: @DHowett-MSFT
Created: 1/9/2020
Status: Merged
Merged: 1/11/2020
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/program.exe


📝 Commits (3)

  • dfc40bf when spawning a ConPTY, be sure to provide & escape conhost's path
  • 0af9627 Added comment that Mike requested to the escape
  • f91ee42 Merge branch 'master' into dev/duhowett/program.exe

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 src/winconpty/winconpty.cpp (+4 -3)

📄 Description

Fixes #4061.

I've tested this in multiple build and deployment configurations and placed a console application at C:\Program.exe

before

Terminal spawns Program.exe instead of conhost.exe, and then tries to attach CMD to it.

image

Program.exe prints out "UNICODE. ^Z TO EXIT".

after

image

Everything is good.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/4172 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 1/9/2020 **Status:** ✅ Merged **Merged:** 1/11/2020 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/program.exe` --- ### 📝 Commits (3) - [`dfc40bf`](https://github.com/microsoft/terminal/commit/dfc40bf12b74a137963de8d52c7415eb7a6d3a7d) when spawning a ConPTY, be sure to provide & escape conhost's path - [`0af9627`](https://github.com/microsoft/terminal/commit/0af9627cd7ca4dd8a7d9737e877b8ebc9238437f) Added comment that Mike requested to the escape - [`f91ee42`](https://github.com/microsoft/terminal/commit/f91ee4248f2fad13e3bdaecef130d4c49ddd3df0) Merge branch 'master' into dev/duhowett/program.exe ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/winconpty/winconpty.cpp` (+4 -3) </details> ### 📄 Description Fixes #4061. I've tested this in multiple build and deployment configurations and placed a console application at `C:\Program.exe` ## before Terminal spawns Program.exe instead of conhost.exe, and then tries to attach CMD to it. ![image](https://user-images.githubusercontent.com/14316954/72114104-61f55380-32f7-11ea-9934-4400e302edd8.png) _Program.exe_ prints out "UNICODE. ^Z TO EXIT". ## after ![image](https://user-images.githubusercontent.com/14316954/72114118-6f124280-32f7-11ea-916b-b2ed30d2a08f.png) Everything is good. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:11:00 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#25671