Crash when defterm handoff'ing a bat file? #19768

Open
opened 2026-01-31 06:53:06 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Apr 26, 2023).

  1. Terminal preview 1.18.1041
  2. Save the following as a bat file:
    echo foo
    
    for /L %%i  IN (0,1,100000) DO echo Line %%i 
    
    pause
    
  3. add "windowingBehavior": "useAnyExisting",
  4. Set Terminal Preview as the default terminal
  5. Open a Terminal window
  6. double click the .bat in file explorer
  7. OpenConsole crashes into the post-mortem debugger‼️

Other bat files are fine?

It also doesn't crash if you run it manually?

Originally created by @zadjii-msft on GitHub (Apr 26, 2023). 1. Terminal preview 1.18.1041 2. Save the following as a bat file: ```bat echo foo for /L %%i IN (0,1,100000) DO echo Line %%i pause ``` 3. add `"windowingBehavior": "useAnyExisting",` 4. Set Terminal Preview as the default terminal 5. Open a Terminal window 6. double click the `.bat` in file explorer 7. OpenConsole crashes into the post-mortem debugger‼️ Other bat files are fine? It also doesn't crash if you run it manually?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19768