Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: =?UTF-8?Q?=C5=A0imon_Let?= Newsgroups: gnu.bash.bug Subject: bind -X shows inactive bindings (bindings removed using bind -r) Date: Thu, 12 Dec 2019 10:57:52 +0100 Lines: 29 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1576144689 16084 209.51.188.17 (12 Dec 2019 09:58:09 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=upo3TMSPZUjovn0EDVwxVtijg7miiZbfFthqu9hftso=; b=NpgCuSmARPgLYaS7Dp1AlRFWC4+34vU3KNzCIKTrOitL+imO7+P44iacDAXWVz5C4l 0lPmeJcGNQMsJj/D4TcWlMdlVHi+ja1eTyzZDmPmZB3aTn4S2XSkykgCazH2iBrdsdY5 DF115m0w+LJ02LUBLSxyp2NO7ifZsGFrgmvlseyi1w55GHwYFaA8XtX+j1IJ/wC21Od4 9UtnvOq/4Rtk2IuJHCzCai5TdT6Mjb1XUoQxBfxkFDdV5J/6qkYxvgghJt4WqN626Wy/ 2v+LOza+bcB5ynkB5+awTLSAu7z+k948gSj3907JICGMQET4lWveBF6eM1+7j1PoOCdF fc/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=upo3TMSPZUjovn0EDVwxVtijg7miiZbfFthqu9hftso=; b=rY+9KSHRLFNVm7Q7wSJ+0PTZyhl1hBMX7DDtyMT+WTS1p92bo/12eYzwCtzN7q6Srg Kgxckm0C16Y/hixc3odNVPYhOjFmFvHSg+/mWDPW/DYP68GlumE0EgRvgMPIZHaQlaHG diUJxRgwMYCyizdR1ORLHaTsDF0Jpd6oUzHb4UhRglga3b9X3o83c1gPgG7Awr3jIqph BZiUDmlvwbhaOzIVQSZ6GrbX1B37RABbrW1/JUsOtnA+YREZHX7Wkvkt/Qs2nA9DKiFV KBV9LoaHmd20AZHDvdi4lEC3pB0WaOvS2P3NMXG1vVTEkJ39YRy65nsY1UqhY851NZhw YdEw== X-Gm-Message-State: APjAAAVOBddu0BocZpODyOxKq6qPMf27fJvEEHwx5Cdi8vDtJNjRVhuz bmha9lfnmocf4f33pgi7pzpdSBAxWjxYb7A13MeLXGbN0dE= X-Google-Smtp-Source: APXvYqyCIrXobUWEBGsMrJdozmllHMNdno7uOQ6PUOkfXf9KDkEznFSuKColPxnU+nFhE3fZAJHWOYl6ItobG/zLDcE= X-Received: by 2002:a6b:d912:: with SMTP id r18mr2196392ioc.306.1576144682871; Thu, 12 Dec 2019 01:58:02 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2e X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:15712 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