Empty path to OSC 9;9; crashes Terminal window #16646

Open
opened 2026-01-31 05:18:22 +00:00 by claunia · 0 comments
Owner

Originally created by @kstauffer on GitHub (Feb 4, 2022).

Windows Terminal version

1.13.10336.0

Windows build number

10.0.19042.1466

Other Software

No response

Steps to reproduce

In WSL bash, echo $'\e]9;9;\e\\'

Expected Behavior

Terminal should keep running. I don't know if the devs think an empty path should be treated as a no-op or like a well-formed path to a non-existent directory. For example, \e]9;9;/foo\e\\\ sets the directory to /.

Actual Behavior

Terminal window hangs immediately (tested by running date in a tight loop in the background) and crashes a second later.

Originally created by @kstauffer on GitHub (Feb 4, 2022). ### Windows Terminal version 1.13.10336.0 ### Windows build number 10.0.19042.1466 ### Other Software _No response_ ### Steps to reproduce In WSL bash, `echo $'\e]9;9;\e\\'` ### Expected Behavior Terminal should keep running. I don't know if the devs think an empty path should be treated as a no-op or like a well-formed path to a non-existent directory. For example, `\e]9;9;/foo\e\\\` sets the directory to /. ### Actual Behavior Terminal window hangs immediately (tested by running `date` in a tight loop in the background) and crashes a second later.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16646