Package: bash Version: 5.2.21-2.1+b1 I have no idea if this is a problem with bash or with readline but for the last week or so, sometimes (fairly often) when I use Ctrl-R to do a history search and recall, it prevents Ctrl-C from working - Ctrl-C is completely ignored, i.e. it doesn't do anything, isn't handled as intr and doesn't even display "^C" on the terminal. There is no response at all to pressing ^C.
To get ^C working again, I have to log out and then log back in again. Or run `exec bash`. Unfortunately, this is not consistent and I have not yet managed to figure out a pattern for when it happens vs when it doesn't happen. BTW I have not changed how I use bash, I have been using ^R for recall in exactly the same way for many years. # dlocate -l '^.i.*(readline|bash)' Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-================-=====================-====================================================== ii bash 5.2.21-2.1+b1:amd64 GNU Bourne Again SHell ii bash-builtins 5.2.21-2.1+b1:amd64 Bash loadable builtins - headers & examples ii libreadline5 5.2+dfsg-3+b13:amd64 GNU readline and history libraries, run-time libraries ii libreadline8t64 8.2-4:amd64 GNU readline and history libraries, run-time libraries ii readline-common 8.2-4:all GNU readline and history libraries, common files stty still indicates that intr is ^C, but it just doesn't work # stty -a speed 38400 baud; rows 61; columns 231; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0; -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc At first I thought it might be a problem with either /etc/inputrc or ~/.inputrc on one particular machine, but then I noticed it happening on other machines too. AFAICT, there is nothing unusual or wrong about my readling config. I haven't changed it for years. # cat ~/.inputrc $include /etc/inputrc set bell-style none set completion-ignore-case on set show-all-if-ambiguous off # cat /etc/inputrc # /etc/inputrc - global inputrc for libreadline # See readline(3readline) and `info rluserman' for more information. # Be 8 bit clean. set input-meta on set output-meta on # To allow the use of 8bit-characters like the german umlauts, comment out # the line below. However this makes the meta key not work as a meta key, # which is annoying to those which don't need to type in 8-bit characters. # set convert-meta off # try to enable the application keypad when it is called. Some systems # need this to enable the arrow keys. # set enable-keypad on # see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys # do not bell on tab-completion # set bell-style none set bell-style none set completion-ignore-case on #set show-all-if-ambiguous on set show-all-if-ambiguous off # some defaults / modifications for the emacs mode $if mode=emacs # allow the use of the Home/End keys "\e[1~": beginning-of-line "\e[4~": end-of-line # allow the use of the Delete/Insert keys # "\e[3~": delete-char # "\e[2~": quoted-insert # mappings for "page up" and "page down" to step to the beginning/end # of the history # "\e[5~": beginning-of-history # "\e[6~": end-of-history # alternate mappings for "page up" and "page down" to search the history # "\e[5~": history-search-backward # "\e[6~": history-search-forward # # mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving "\e[5C": forward-word "\e[5D": backward-word # $if term=rxvt "\e[7~": beginning-of-line "\e[8~": end-of-line # $endif # for non RH/Debian xterm, can't hurt for RH/DEbian xterm "\eOH": beginning-of-line "\eOF": end-of-line # for freebsd console # "\e[H": beginning-of-line # "\e[F": end-of-line # SHIFT-TAB for menu-complete "\e[Z": menu-complete $endif set colored-stats off