Tab don't Work in cmd. (Powershell is fine) #16327

Closed
opened 2026-01-31 05:04:16 +00:00 by claunia · 6 comments
Owner

Originally created by @fluentmoheshwar on GitHub (Jan 3, 2022).

Windows Terminal version

1.11.3471.0

Windows build number

10.0.19044.1415

Other Software

cmd.exe

Steps to reproduce

Open windows terminal.
Open cmd inside terminal.
Input something and press tab.

Expected Behavior

Pressing tab will complete the filename.

Actual Behavior

Adding some spaces like Microsoft word.

Originally created by @fluentmoheshwar on GitHub (Jan 3, 2022). ### Windows Terminal version 1.11.3471.0 ### Windows build number 10.0.19044.1415 ### Other Software cmd.exe ### Steps to reproduce Open windows terminal. Open cmd inside terminal. Input something and press tab. ### Expected Behavior Pressing tab will complete the filename. ### Actual Behavior Adding some spaces like Microsoft word.
claunia added the Needs-TriageNeeds-Tag-FixNeeds-AttentionProduct-Cmd.exe labels 2026-01-31 05:04:16 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2022):

Do you have a specific example of a path that doesn't work? "Input something and press tab... Adding some spaces like Microsoft word" isn't really specific enough. Usually when you're in a directory that's got a child file/dir with spaces, cmd should automatically wrap it in spaces, like so:

image

@zadjii-msft commented on GitHub (Jan 3, 2022): Do you have a specific example of a path that doesn't work? "Input something and press tab... Adding some spaces like Microsoft word" isn't _really_ specific enough. Usually when you're in a directory that's got a child file/dir with spaces, cmd should automatically wrap it in spaces, like so: ![image](https://user-images.githubusercontent.com/18356694/147943629-5c0e909b-89c8-4314-a493-2f882f5601d7.png)
Author
Owner

@fluentmoheshwar commented on GitHub (Jan 3, 2022):

Do you have a specific example of a path that doesn't work? "Input something and press tab... Adding some spaces like Microsoft word" isn't really specific enough. Usually when you're in a directory that's got a child file/dir with spaces, cmd should automatically wrap it in spaces, like so:

image

Example: i wanna change directory from C:\ to C:\Windows
Expected Behavior: cd W then Tab it will become cd Windows
Actual Behavior: cd W
Note: It's happening on all directories. and in only cmd inside terminal. nor powershell inside terminal nor cmd inside conhost

@fluentmoheshwar commented on GitHub (Jan 3, 2022): > Do you have a specific example of a path that doesn't work? "Input something and press tab... Adding some spaces like Microsoft word" isn't _really_ specific enough. Usually when you're in a directory that's got a child file/dir with spaces, cmd should automatically wrap it in spaces, like so: > > ![image](https://user-images.githubusercontent.com/18356694/147943629-5c0e909b-89c8-4314-a493-2f882f5601d7.png) Example: i wanna change directory from C:\ to C:\Windows Expected Behavior: cd W then Tab it will become cd Windows Actual Behavior: cd W Note: It's happening on all directories. and in only cmd inside terminal. nor powershell inside terminal nor cmd inside conhost
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2022):

Is there anything in the following two reg keys?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor

it should look something like:

image

@zadjii-msft commented on GitHub (Jan 3, 2022): Is there anything in the following two reg keys? ``` HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor ``` it should look something like: ![image](https://user-images.githubusercontent.com/18356694/147947772-b78b77ba-6a5b-43c9-b9b7-fbcad740deca.png)
Author
Owner

@fluentmoheshwar commented on GitHub (Jan 3, 2022):

Is there anything in the following two reg keys?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor

it should look something like:

image

The registry is broken what is the full PathCompletion it seems like Something is hidden

@fluentmoheshwar commented on GitHub (Jan 3, 2022): > Is there anything in the following two reg keys? > > ``` > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor > HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor > ``` > > it should look something like: > > ![image](https://user-images.githubusercontent.com/18356694/147947772-b78b77ba-6a5b-43c9-b9b7-fbcad740deca.png) The registry is broken what is the full PathCompletion it seems like Something is hidden
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2022):

My bad, that should be PathCompletionChar.

@zadjii-msft commented on GitHub (Jan 3, 2022): My bad, that should be `PathCompletionChar`.
Author
Owner

@fluentmoheshwar commented on GitHub (Jan 3, 2022):

Thanks. fixed

@fluentmoheshwar commented on GitHub (Jan 3, 2022): Thanks. fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16327