Environment
Windows build number: 10.0.19041.264
Windows Terminal version (if applicable): 1.0.1401.0
Profiles:
Windows Powershell
Command Prompt
PowerShell
PowerShell 7 Preview
Ubuntu
Azure Cloud Shell
Config: settings.txt
Steps to reproduce
wt -p Windows PowerShell
Causes Windows Powershell to be loaded, but with Powershell (Core) as the profile
wt -p Command Prompt
Following message is shown: [error 0x80070002 when launching `Prompt'] (Is using the Powershell (Core) profile but the tab name is empty)
wt -p ubuntu
Launches Powershell (Core)
Expected behavior
Less confusing behaviour, from what I have observed it seems like, on my system at least, the Powershell (Core) profile is considered a default of sorts, so if it doesn't find a direct match it just opens that. It also seems that the second argument seems to be passed as an argument to the profile, not entirely sure if that's right way to describe it, as wt -p Windows Get-Date results in the same error as the Command Prompt example instead of executing Get-Date.
So I think ways of adressing that would be:
- Commands should only accept the ones defined in the documentation, (e.g.
new-tab, split-pane, focus-tab)
- If a direct (case insensitive) profile match isn't found, is it possible to launch the default profile while displaying to the user that the selected profile wasn't found?
- (imo) If a direct (case insensitive) profile match is found do launch that, instead of the default. (i.e.
wt -p ubuntu is the same as wt -p Ubuntu)
Actual behavior
In steps to reproduce, above.
Environment
Config: settings.txt
Steps to reproduce
wt -p Windows PowerShellCauses Windows Powershell to be loaded, but with Powershell (Core) as the profile
wt -p Command PromptFollowing message is shown: [error 0x80070002 when launching `Prompt'] (Is using the Powershell (Core) profile but the tab name is empty)
wt -p ubuntuLaunches Powershell (Core)
Expected behavior
Less confusing behaviour, from what I have observed it seems like, on my system at least, the Powershell (Core) profile is considered a default of sorts, so if it doesn't find a direct match it just opens that. It also seems that the second argument seems to be passed as an argument to the profile, not entirely sure if that's right way to describe it, as
wt -p Windows Get-Dateresults in the same error as the Command Prompt example instead of executing Get-Date.So I think ways of adressing that would be:
new-tab,split-pane,focus-tab)wt -p ubuntuis the same aswt -p Ubuntu)Actual behavior
In steps to reproduce, above.