Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15745
| From | Koichi Murase <myoga.murase@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | [PATCH] Fix a problem that shadow `bind -x' is not removed from `bind -X' |
| Date | 2019-12-19 00:33 +0800 |
| Message-ID | <mailman.1089.1576686843.1979.bug-bash@gnu.org> (permalink) |
| References | (2 earlier) <029feb2c-77b4-d999-9cdf-f364a8a2f53c@case.edu> <CAFLRLk90q=8aSxES9PbGbMYwKM1BY3zicZq-KyO7572nfDx6qw@mail.gmail.com> <cba21189-16c3-0f74-b96c-560da29cd788@case.edu> <CAFLRLk-0sfUzOpnQaTbPb1fxgYJyVMFEDJdtJyh+zfhqHm1A2A@mail.gmail.com> <CAFLRLk-F8zo7hd1sj6N73E2GGNi_zi1mWvjwrT6rvurSKUUm0Q@mail.gmail.com> |
[Multipart message — attachments visible in raw view] - view raw
I found a case that some removed bindings still remain in `bind -X' after the fix. Here is the report. Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security uname output: Linux hp2019 5.2.13-200.fc30.x86_64 #1 SMP Fri Sep 6 14:30:40 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.0 Patch Level: 11 Release Status: maint Description: The command string for shadow `bind -x' key binding is not removed from corresponding cmd_xmap and therefore remains in the list of `bind -X'. Repeat-By: With the following command, one can create shadow binding for `\C-t' and remove the binding. The binding is in fact removed and inactive after the unbind, but remains in the output of `bind -X'. $ bind '"\C-t\C-t\C-t\C-t":"hello"' $ bind -x '"\C-t":echo world' $ bind -r '\C-t' $ bind -X "\C-t": "echo world" Fix: I attach a patch. In the patch, if the original binding corresponding to removed keyseq is `ISKMAP', its shadow entry `map[ANYOTHERKEY].function' is also checked if it is `bash_execute_unix_command'. Thank you, Koichi
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
[PATCH] Fix a problem that shadow `bind -x' is not removed from `bind -X' Koichi Murase <myoga.murase@gmail.com> - 2019-12-19 00:33 +0800
csiph-web