Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell split switches for -new_console not working #2443

Open
ta32 opened this issue May 16, 2022 · 2 comments
Open

Powershell split switches for -new_console not working #2443

ta32 opened this issue May 16, 2022 · 2 comments

Comments

@ta32
Copy link

ta32 commented May 16, 2022

Versions

ConEmu build: 220418 64
OS version: Windows 10 x64
Used shell version: PowerShell 7.2.3
$PSNativeCommandArgumentPassing=Standard

Problem description

sub switches dont work in powershell eg

ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:"test":P:"<Twilight>"
result in a window called test:P:<Twlight>

running the same command in cmd prompt
a powershell terminal called test is created with the Twilight color scheme ( correct behavior )

To verify if its a powershell issue I performed the following test in PowerShell and Cmd:

testecho ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:"test":P:"<Twilight>"
> ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:test:P:<Twilight>

Same result in cmd prompt.
Note: testecho is just the GnuWin32 echo executable renamed to avoid conflicting with the powershell echo alias

Steps to reproduce

  1. run ConEmuC.exe -c pwsh.exe -NoExit -new_console:t:"test":P:"<Twilight>" in powershell
  2. run pwsh -new_console:t:"test":P:"<Twilight>" in powershell ( also doesn't work )

Actual results

powershell terminal is created called: test:P<Twilight>

Expected results

powershell terminal is created called: test with color scheme Twilight

Additional files

Settings,
screenshots,
logs,
etc.

@ta32 ta32 changed the title Powershell split switches not working Powershell split switches for -new_console not working May 16, 2022
@ta32
Copy link
Author

ta32 commented May 16, 2022

You can create new consoles by doing:

pwsh -new_console:t:"test":P:"<Twilight>"

pwsh.exe -new_console:P:"<Twilight>"
works from a powershell terminal

@Rotznase
Copy link

Rotznase commented May 26, 2022

I have the same issue with Git-Bash.

bash -new_console:t:"TabTitle":d:"directory"

This results in a new tab with name TabTitle:d:directory.

ConEmu 220418 [64]
OS version: Windows 10 Pro x64
Bash: 4.4.23(1)-release (x86_64-pc-msys)
Git: 2.31.1

Edit:
It works if I enter bash -new_console:t:"TabTitle":d:"directory" into the settings dialog. It does not work if I enter the line in a running bash. Perhaps the last one is not intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants