Command line parameters need adjustments to run in PowerShell #7440

Closed
opened 2026-01-31 01:04:06 +00:00 by claunia · 2 comments
Owner

Originally created by @jdhitsolutions on GitHub (Apr 16, 2020).

Environment

Platform ServicePack Version      VersionString                    
-------- ----------- -------      -------------                    
 Win32NT             10.0.18363.0 Microsoft Windows NT 10.0.18363.0

Windows Terminal 0.10.78.1.0

Any other software?

Steps to reproduce

I am trying out the command line examples. If I open a CMD window, and run this command

wt -p "Windows PowerShell No Profile"; split-pane -p "PowerShell 7 No Profile"

I get a new Terminal window with my two profiles vertically split. You can use any two profiles you want. This isn't a profile problem.

Expected behavior

When I run the same command in Windows PowerShell 5.1 or PowerShell 7 I expect or at least want the same result.

Actual behavior

Instead, I get the first profile in a new WT instance. When I close it, the next profile opens. PowerShell is treating the ; as an end of command marker so your example is actually two commands.

I think the command line option needs to be a single command that allows the user to specify the initial profile plus any additional customization such as split pane.

Originally created by @jdhitsolutions on GitHub (Apr 16, 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. --> # Environment ```none Platform ServicePack Version VersionString -------- ----------- ------- ------------- Win32NT 10.0.18363.0 Microsoft Windows NT 10.0.18363.0 Windows Terminal 0.10.78.1.0 Any other software? ``` # Steps to reproduce I am trying out the command line examples. If I open a CMD window, and run this command ```dos wt -p "Windows PowerShell No Profile"; split-pane -p "PowerShell 7 No Profile" ``` I get a new Terminal window with my two profiles vertically split. You can use any two profiles you want. This isn't a profile problem. # Expected behavior When I run the same command in Windows PowerShell 5.1 or PowerShell 7 I expect or at least want the same result. # Actual behavior Instead, I get the first profile in a new WT instance. When I close it, the next profile opens. PowerShell is treating the `;` as an end of command marker so your example is actually two commands. I think the command line option needs to be a single command that allows the user to specify the initial profile plus any additional customization such as split pane.
claunia added the Resolution-Duplicate label 2026-01-31 01:04:06 +00:00
Author
Owner

@DHowett-MSFT commented on GitHub (Apr 16, 2020):

Thanks for the report! We have some documentation changes outstanding in https://github.com/microsoft/terminal/pull/5361 and a lively discussion over in /dup #4570, so I'm gonna redirect discussion over there. Thanks!

@DHowett-MSFT commented on GitHub (Apr 16, 2020): Thanks for the report! We have some documentation changes outstanding in https://github.com/microsoft/terminal/pull/5361 and a lively discussion over in /dup #4570, so I'm gonna redirect discussion over there. Thanks!
Author
Owner

@ghost commented on GitHub (Apr 16, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Apr 16, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#7440