[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysterious error after rebinding keys in Bash 5.1.4

From: Koichi Murase
Subject: Re: Mysterious error after rebinding keys in Bash 5.1.4
Date: Fri, 16 Apr 2021 23:14:34 +0900

2021年4月16日(金) 22:08 Dale Sedivec <dale@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
> commit 3a7c642e223ec260042bfecc12da49717ae77d76
> Author: Chet Ramey <chet.ramey@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


Attachment: 0001-fix-incorrect-unbind_unix_command-on-overwriting-key.patch
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]