Skip to content

git commands at windows command prompt corrupt key mappings for arrows #4551

@djgoldman

Description

@djgoldman

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
git status
git pull

What did you expect to happen? (Expected behavior)
commands complete without impacting windows command history

What happened instead? (Actual behavior)
git status works normally and doesn't corrupt anything
git fetch works normally but leaves windows command history corrupt.
Up arrow gets me "^[[A" instead of the previous command.
No combination of ctrl, shift or alt modifiers make it any better.
git status works normally and corrects the issue.

What's different between what you expected and what actually happened?
Don't expect windows command prompt's command history to give garbage characters.

Anything else you want to add:
This doesn't happen immediately but does start soon after starting work.
The git fetch/git status behavior is reproducable once it starts happening.

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.

[System Info]
git version:
git version 2.41.0.windows.3
cpu: x86_64
built from commit: 4a1821d
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 19044
compiler info: gnuc: 13.1
libc info: no libc information available
$SHELL (typically, interactive shell):

[Enabled Hooks]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions