[PR #1815] [MERGED] Fix The conhost command line is not properly escaped #24669

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/1815
Author: @fcharlie
Created: 7/4/2019
Status: Merged
Merged: 7/12/2019
Merged by: @DHowett-MSFT

Base: masterHead: conhost_commandline_escape


📝 Commits (4)

  • 5f54722 Fix The conhost command line is not properly escaped
  • dd915c8 Fix ArgSplittingTests
  • 42e1080 convert to camel case
  • 4d97ade Add test with ConsoleArguments no quotes

📊 Changes

2 files changed (+96 additions, -3 deletions)

View changed files

📝 src/host/ConsoleArguments.cpp (+74 -1)
📝 src/host/ut_host/ConsoleArgumentsTests.cpp (+22 -2)

📄 Description

Summary of the Pull Request

This PR is used to fix conhost when the process is started, and the command line is not properly escaped causing an error. For details, please see Issues: #1090

References

PR Checklist

  • Closes Command prompt goes black after awaking from sleep (#1090)
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed


🔄 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/1815 **Author:** [@fcharlie](https://github.com/fcharlie) **Created:** 7/4/2019 **Status:** ✅ Merged **Merged:** 7/12/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `conhost_commandline_escape` --- ### 📝 Commits (4) - [`5f54722`](https://github.com/microsoft/terminal/commit/5f5472230ed052cdcaeab34e1e461bb0a5455e61) Fix The conhost command line is not properly escaped - [`dd915c8`](https://github.com/microsoft/terminal/commit/dd915c8667b33e69cc2c8e03d4fee723814e3da9) Fix ArgSplittingTests - [`42e1080`](https://github.com/microsoft/terminal/commit/42e1080d9235f71333186b784572954c0a85c62f) convert to camel case - [`4d97ade`](https://github.com/microsoft/terminal/commit/4d97ade3bfa0c5613443aa47c911cd9a872f6aea) Add test with ConsoleArguments no quotes ### 📊 Changes **2 files changed** (+96 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/host/ConsoleArguments.cpp` (+74 -1) 📝 `src/host/ut_host/ConsoleArgumentsTests.cpp` (+22 -2) </details> ### 📄 Description <!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? --> ## Summary of the Pull Request This PR is used to fix conhost when the process is started, and the command line is not properly escaped causing an error. For details, please see Issues: #1090 <!-- Other than the issue solved, is this relevant to any other issues/existing PRs? --> ## References <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #1090 * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [x] Tests added/passed * [ ] Requires documentation to be updated * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx <!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here --> ## Detailed Description of the Pull Request / Additional comments <!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well --> ## Validation Steps Performed --- <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:04:41 +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#24669