ConEmu icon indicating copy to clipboard operation
ConEmu copied to clipboard

Powershell split switches for -new_console not working

Open ta32 opened this issue 3 years ago • 3 comments

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 avatar May 16 '22 07:05 ta32

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

ta32 avatar May 16 '22 08:05 ta32

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.

Rotznase avatar May 26 '22 21:05 Rotznase