microsoft / microsoft/terminal

Crash when creating two tabs from within a batch script launched in the same terminal window

Open
#10,328 1 comment 0 reactions 1 assignee Claimed by @zadjii-msft View on GitHub
Area-Remoting Issue-Bug Needs-Tag-Fix Priority-2 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version (or Windows build number)

1.8.1444

### Other Software

_No response_

### Steps to reproduce

Crash when creating two tabs from within a batch script launched in the same terminal window.

Create the following files.

test1.bat:
```
wt -w test -d . -p "Command Prompt" test2.bat
```

test2.bat:
```
wt -w test -d . -p "Command Prompt" test3.bat
wt -w test -d . -p "Command Prompt" test3.bat
```

test3.bat:
```
echo Test
pause
```

There should be no window named "test" at first.

Double click on test1.bat.

### Expected Behavior

A window with two tabs showing the "Test" output.

### Actual Behavior

Terminal crashes as it attempts to launch the additional tab.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.