Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15745
| Path | csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail |
|---|---|
| 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 | Thu, 19 Dec 2019 00:33:45 +0800 |
| Lines | 81 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.1089.1576686843.1979.bug-bash@gnu.org> (permalink) |
| References | <CAOdNpm8m-8NQVfWiCQX3CKPordxzZShx6K1_OLTbYg77gf5R=g@mail.gmail.com> <CAFLRLk9-QDjyX0v_9OGc364m_wadcma1_q+unWPXhiE0HUq6xw@mail.gmail.com> <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> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | multipart/mixed; boundary="000000000000d098ec0599fd022d" |
| X-Trace | usenet.stanford.edu 1576686843 23070 209.51.188.17 (18 Dec 2019 16:34:03 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash@gnu.org, Šimon Let <simon.a.let@gmail.com> |
| To | Chester Ramey <chet.ramey@case.edu> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bUpsESVTD7PsN9uZxlQdDHrTH2m3t69y5UyE+VvgFUc=; b=A7xKj0LP34wOdp6XnS+FLBcvAF9pSfcdHwd7Ks405GW2SNlCwROezlBIoR8xq5zWAK 96K2aJ6zCSuSAstL5HjDbhhEZ+eShxmEWsgoATSRh4NK2KB3z2Xz9sgQkQ2YXSI5YwJK GSVT69ENFPioKLH9tspAL2f8HpxUbd+5Smke6BURw/FXpMUQM4Zoy1vCDC9D1IePc6vd G4WuDgU/t52vBIU/Pjq8nk5yDPbLULga7jplV3LeMovVWSK6uz8M6TYj3ojO/A6I4X6i qIuFzASepsItfrbu/2oLHmPJ12bQXVehXtTxBZDamvx1D4Yt68GsNjwsdazo5sJkxa1X AYfA== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bUpsESVTD7PsN9uZxlQdDHrTH2m3t69y5UyE+VvgFUc=; b=VHlbIb3nCBgTKc0k2auXkXIz07ud29biRy4kkomf11gtBOs64ziIOT6PEOg6MbuXsN k5m2SkfCy7+pDaJoMCPeW7/sG5wybO2+6BMqThzZ9q1Bf5Q8drU3VCMyYuKV4fUJOlCA DskKenVs7M4AlEHJBELeCYH9x/DHaRZSlRIvk1dv1Y6YwpMRJphNMblqI7UjkK0kUg9/ 0rhdsIxSK0Ntgl3E49OyOxppJSj7o6C09W4SW4WMeVoZQplYyzVkXW8Hk6WrQLm5yc4C kGCTfK/PrtnTwfnfjQA862VquyAmCv6oi8Ddt3XqZcsYEaz/a4NmGncHV5Rdh+8q73Y/ VEpA== |
| X-Gm-Message-State | APjAAAWk+M6QbL9YoK37WViXwtHBsOqXk65EyjHg5mhO1VS8P2zmGlEL cKQW1qeVH2ymHosG6FrvLC5t0d2Kct+7wDOPpPw= |
| X-Google-Smtp-Source | APXvYqwBaM0WyD/5K4wqyl5gfdz7bJXoKvRtL280lfoUjZNY9KRU7teyeFl6V1ROeArZmdUMQ8RILM8DXgleKABl9ZI= |
| X-Received | by 2002:a2e:2283:: with SMTP id i125mr2449158lji.244.1576686836536; Wed, 18 Dec 2019 08:33:56 -0800 (PST) |
| In-Reply-To | <CAFLRLk-0sfUzOpnQaTbPb1fxgYJyVMFEDJdtJyh+zfhqHm1A2A@mail.gmail.com> |
| X-detected-operating-system | by eggs.gnu.org: Genre and OS details not recognized. |
| X-Received-From | 2a00:1450:4864:20::242 |
| X-BeenThere | bug-bash@gnu.org |
| X-Mailman-Version | 2.1.23 |
| Precedence | list |
| List-Id | Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org> |
| List-Unsubscribe | <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe> |
| List-Archive | <https://lists.gnu.org/archive/html/bug-bash> |
| List-Post | <mailto:bug-bash@gnu.org> |
| List-Help | <mailto:bug-bash-request@gnu.org?subject=help> |
| List-Subscribe | <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAFLRLk-F8zo7hd1sj6N73E2GGNi_zi1mWvjwrT6rvurSKUUm0Q@mail.gmail.com> |
| X-Mailman-Original-References | <CAOdNpm8m-8NQVfWiCQX3CKPordxzZShx6K1_OLTbYg77gf5R=g@mail.gmail.com> <CAFLRLk9-QDjyX0v_9OGc364m_wadcma1_q+unWPXhiE0HUq6xw@mail.gmail.com> <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> |
| Xref | csiph.com gnu.bash.bug:15745 |
Show key headers only | View raw
[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