Skip to content

CLI completion showing ^M after options #24268

Open
@drewnoakes

Description

@drewnoakes

Describe the bug

When using CLI completion in Git Bash, ^M characters are displayed after options.

image

To Reproduce

  1. Open Git Bash in Windows Terminal
  2. Type dotnet and press Tab a few times
  3. Notice ^M in output

Interestingly, this only appears after options, not after file names.

Further technical details

$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.200
 Commit:    4c30de7899

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.22000
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\6.0.200\

Host (useful for support):
  Version: 6.0.2
  Commit:  839cdfb0ec

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions