[PR #12086] [MERGED] Ensure PowerShell Core profile commandline is quoted #28825

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

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/12086
Author: @ianjoneill
Created: 1/4/2022
Status: ✅ Merged
Merged: 1/4/2022
Merged by: @undefined

Base: main ← Head: f-quote-powershell-commandline


📝 Commits (1)

  • dfc652a Ensure PowerShell Core profile commandline is quoted

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 src/cascadia/TerminalSettingsModel/PowershellCoreProfileGenerator.cpp (+9 -1)

📄 Description

Ensures the PowerShell Core profile's commandline is quoted. This allows
the profile to work correctly if there are files in place on the machine
(e.g. one called C:\Program) that prevent CreateProcess() from
invoking the un-quoted commandline.

Validation Steps Performed

Created a file called C:\Program and opened the PowerShell profile in
terminal.

Closes #11717


🔄 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/12086 **Author:** [@ianjoneill](https://github.com/ianjoneill) **Created:** 1/4/2022 **Status:** ✅ Merged **Merged:** 1/4/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `f-quote-powershell-commandline` --- ### 📝 Commits (1) - [`dfc652a`](https://github.com/microsoft/terminal/commit/dfc652acb59af571d40352f21111dbb7488f169a) Ensure PowerShell Core profile commandline is quoted ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalSettingsModel/PowershellCoreProfileGenerator.cpp` (+9 -1) </details> ### 📄 Description Ensures the PowerShell Core profile's commandline is quoted. This allows the profile to work correctly if there are files in place on the machine (e.g. one called `C:\Program`) that prevent `CreateProcess()` from invoking the un-quoted commandline. ## Validation Steps Performed Created a file called `C:\Program` and opened the PowerShell profile in terminal. Closes #11717 --- <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:31: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#28825