Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15712
| From | Šimon Let <simon.a.let@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | bind -X shows inactive bindings (bindings removed using bind -r) |
| Date | 2019-12-12 10:57 +0100 |
| Message-ID | <mailman.718.1576144689.1979.bug-bash@gnu.org> (permalink) |
| References | <CAOdNpm8m-8NQVfWiCQX3CKPordxzZShx6K1_OLTbYg77gf5R=g@mail.gmail.com> |
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
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
bind -X shows inactive bindings (bindings removed using bind -r) Šimon Let <simon.a.let@gmail.com> - 2019-12-12 10:57 +0100
csiph-web