bug-bash
[Top][All Lists]
Advanced

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

bind -X shows inactive bindings (bindings removed using bind -r)


From: Šimon Let
Subject: bind -X shows inactive bindings (bindings removed using bind -r)
Date: Thu, 12 Dec 2019 10:57:52 +0100

Hi,

according to `bind --help`, `bind -X` should "List key sequences bound with
-x and associated commands in a form that can be reused as input.".

However, when I remove a binding using `bind -r` it still shows up in the
list.

Reproduce:
1) Bind command using: `bind -x "\"\C-r\":\"echo I just pressed C-R\""`
Everything works as expected.
Pressing `\C-r` runs `echo I just pressed C-R`.
Running `bind -X` shows the following list of bound commands: `"\C-r":
"echo I just pressed C-R"`

2) Unbind command using `bind -r "\C-r"`
Pressing `\C-r` does nothing as expected.
Running `bind -X` still shows the same list of bound commands: `"\C-r":
"echo I just pressed C-R"`

This behavior seems very weird to me. I would expect the binding list to
match actual active bindings.

Affected bash versions: 4.3 - 5.0.11


Best regards,

Simon Let


reply via email to

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