Pasting Tab character leads to Tab Completion #16899

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

Originally created by @st0le on GitHub (Feb 28, 2022).

Windows Terminal version

1.13.10395.0

Windows build number

10.0.19044.0

Other Software

No response

Steps to reproduce

Copy the command below. The command is echo<space><tab><space>test.

echo test
(I now realize github strips the tab character, but you can write this in your text editor and copy it to your clipboard)

If you are adventurous,

rm thisfiledoesntexist (this will delete the first file in your directory!!)

Expected Behavior

It should paste

echo test verbatim.

Actual Behavior

echo <first-file-in-current-directory> test

The Tab completion is invoked which replaces the tab with the first entry in tab completion.

Originally created by @st0le on GitHub (Feb 28, 2022). ### Windows Terminal version 1.13.10395.0 ### Windows build number 10.0.19044.0 ### Other Software _No response_ ### Steps to reproduce Copy the command below. The command is `echo<space><tab><space>test`. `echo test` (I now realize github strips the tab character, but you can write this in your text editor and copy it to your clipboard) If you are adventurous, `rm thisfiledoesntexist` (this will delete the first file in your directory!!) ### Expected Behavior It should paste `echo test` verbatim. ### Actual Behavior `echo <first-file-in-current-directory> test` The Tab completion is invoked which replaces the tab with the first entry in tab completion.
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 05:26:38 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16899