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