Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Werror=implicit-function-declaration 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wall
uname output: Linux s-asi 6.12.35+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 
6.12.35-1 (2025-07-03) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.2
Patch Level: 37
Release Status: release

Description:
        Interrupting a bash completion script kills the line's first character.

Repeat-By:
        # systemctl status foo
        [ press TAB ]
        # systemctl status foo.service 
        [ press TAB again, by mistake, nothing happens ]
        [ type xy, nothing happens because the expansion is still busy ]
        [ type ^C to interrupt ]
        # systemctl status foo.service ^C
        [ cursor is on top of the ^ character ]
        [ I press ENTER ]
        bash: ystemctl: command not found
        [ like, duh? ]
        [ history also shows "ystemctl" ]

Fix:
        <up> ^A s <enter>
        works of course, but I'd rather not have a spuriously deleted first 
character.

Reply via email to