2021年4月16日(金) 22:08 Dale Sedivec <d...@codefu.org>: > Bash Version: 5.1 > Patch Level: 4 > Release Status: release > > Description: > > Rebinding a key seems to break the key that was bound before it. (That > sounds bizarre, but read ahead.)
I attach a patch. This was introduced by the commit 3a7c642e after https://lists.gnu.org/archive/html/bug-bash/2019-12/msg00050.html > commit 3a7c642e223ec260042bfecc12da49717ae77d76 > Author: Chet Ramey <chet.ra...@case.edu> > Date: Mon Dec 16 09:43:38 2019 -0500 > > commit bash-20191213 snapshot > > 12/13 > ----- > builtins/bind.def > - bind_builtin: check the number of bindings to bash_execute_unix_command > before and after a call to rl_parse_and_bind and if there are fewer > after binding, we know that the bind has re-bound one of the key > sequences that was bound to execute a shell command. We unbind any > key sequences from the list before the call to rl_parse_and_bind that > don't appear in the list after the call using unbind_unix_command -- Koichi
0001-fix-incorrect-unbind_unix_command-on-overwriting-key.patch
Description: Binary data