Skip to content

wt does not handle newlines properly #4619

@Jaykul

Description

@Jaykul

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.657]
Windows Terminal Version: 0.9.433.0

Steps to reproduce

Run this in PowerShell:

wt `
new-tab -p PowerShell` Core`;`
split-pane -H -p Windows` PowerShell `;`
split-pane -p cmd

Expected behavior

I should get a new tab split twice (three panes)

Actual behavior

  1. A new window
    2, Three tabs
  2. The second and third tabs have errors in them:
[error 0x80070002 when launching `
                                  split-pane -H -p "Windows PowerShell"']

and

[error 0x80070002 when launching `
                                  split-pane -H -p "Windows PowerShell"']

WORKAROUND

I eventually found that if I add a space after every ; then it works (except for #4618):

wt `
new-tab -p PowerShell` Core`; `
split-pane -H -p Windows` PowerShell `; `
split-pane -p cmd

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Commandlinewt.exe's commandline argumentsHelp WantedWe encourage anyone to jump in on these.Issue-BugIt either shouldn't be doing this or needs an investigation.Product-TerminalThe new Windows Terminal.Resolution-ExternalFor issues that are outside this codebase

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions