Path: csiph.com!3.us.feeder.erje.net!feeder.erje.net!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Chet Ramey Newsgroups: gnu.bash.bug Subject: Re: bind -X shows inactive bindings (bindings removed using bind -r) Date: Fri, 13 Dec 2019 14:25:36 -0500 Lines: 38 Approved: bug-bash@gnu.org Message-ID: References: <029feb2c-77b4-d999-9cdf-f364a8a2f53c@case.edu> Reply-To: chet.ramey@case.edu NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1576265144 8295 209.51.188.17 (13 Dec 2019 19:25:44 GMT) X-Complaints-To: action@cs.stanford.edu Cc: chet.ramey@case.edu To: Koichi Murase , bug-bash@gnu.org, =?UTF-8?Q?=c5=a0imon_Let?= Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=smtp-primary; t=1576265138; bh=rYIdV1seJra0AnTEgSP9mAbuKZzRQnYLefvNSdW3sZM=; h=Reply-To:Cc:Subject:To:References:From:Message-ID:Date: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=EzmAlQKqHZhRytU5NCU5vRi3B+VTC8WRWJgNgr2Sg9CVDaT8e10oLGJpf1NV8kN5Ae rUHlb2aEr86rK0deA0luv9R76PhXcje9843yiQaKzkZH5tTFVkQPQknnI/RUPZN/AUW 4GKZGJeGeJy0safBRqRF6Prrux9wCRBimbEYS6Od/S5l7jzl0VA8c0Xgr7YCVlCjsaV ljv/zKKKOgunW3Ap2xiXx2WwcV7yJFkvoY2bv75bQNzv+vuPW2pWqL+1qTfkq/bGc1Y x0rtAl0J3EX3UFVW5iQHyhHj6FTBoub+qVu3I/YvhtBNnS5t8T4VvlAzoG2kCFuzb51 Kblo8wbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=smtp-primary; t=1576265137; bh=E+Lo4S3mWsaqe6B8twrJhm19yTetywbjZ6kNXZd4nHA=; h=Reply-To:Cc:Subject:To:References:From:Message-ID:Date: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=jneItQkYUWmiJWTXza4uooGkv6qmd5MT5VxvvlzL5nyh1MufSbv5iJBVF6l/vBz4Fl 8bAKS2ADkRsKjFAielcv87NgY0EVKhAe2VeagBWiqYxNVphFXsFrXzb+HNGGNGJpN4m PeEhr/NDQkipJK7pEBoUhBnAiN/kB6cpjqLU5r5HIkl4tBm4jc9qcGySOYWPfvTJaga pFlRpgGCXija+u2HBIHqsa8Q+twbOSYbXeSCAZgGJLUWTWMPtqvHev5StlZbe1Q1Z6n XNKg5JgTQHBn68/lz4cXWiEnXend2jbRJv/fvHxNuDm+TcQ2Mb05oGCqjvnkBn8Hy4b NiWncMdg== User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 In-Reply-To: Content-Language: en-US X-Junkmail-Status: score=7/90, host=mpv4-2015.case.edu X-Junkmail-PrAS-Raw: score=7/90, refid=2.7.2:2019.12.13.183916:17:7.944, ip=, rules=DKIM_SIGNATURE, __HAS_REPLYTO, __HAS_CC_HDR, __SUBJ_REPLY, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __TO_MALFORMED_2, __TO_NAME, __TO_NAME_DIFF_FROM_ACC, __HAS_REFERENCES, __REFERENCES, __HAS_FROM, FROM_EDU_TLD, __HAS_MSGID, __SANE_MSGID, DATE_TZ_NA, __USER_AGENT, __MOZILLA_USER_AGENT, __MIME_VERSION, __IN_REP_TO, __CT, __CT_TEXT_PLAIN, __CTE, __REPLYTO_SAMEAS_FROM_ADDY, __REPLYTO_SAMEAS_FROM_ACC, __FROM_DOMAIN_IN_ANY_CC1, __FROM_DOMAIN_IN_ANY_CC2, __REPLYTO_SAMEAS_FROM_DOMAIN, __DKIM_ALIGNS_1, __DKIM_ALIGNS_2, __ANY_URI, __URI_MAILTO, __HTTPS_URI, __URI_WITH_PATH, URI_ENDS_IN_HTML, __URI_NO_WWW, __CP_URI_IN_BODY, __SUBJ_ALPHA_NEGATE, __MULTIPLE_URI_TEXT, __URI_IN_BODY, __URI_NOT_IMG, __MAIL_CHAIN, __FORWARDED_MSG, __BODY_NO_MAILTO, __NO_HTML_TAG_RAW, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_1400_1499, __MIME_TEXT_P1, __MIME_TEXT_ONLY, [TRUNCATED], so=2010-03-03 19:42:08, dmn=2016-08-03-0138 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 129.22.103.195 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: <029feb2c-77b4-d999-9cdf-f364a8a2f53c@case.edu> X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:15730 On 12/12/19 8:04 AM, Koichi Murase wrote: > I also would like to see this problem fixed. In this February, I > actually posted to this mailing list a patch fixing this problem (with > another patch): > > https://lists.gnu.org/archive/html/bug-bash/2019-02/msg00038.html > > Although the first patch was applied to the devel branch, the second > one which fixes this problem seems not to have been reviewed yet. I > updated the patch to fit the current devel branch. I attach the > updated patch. Here is the description quoted from the mail: I declined to apply this patch because, as you observe, it uses private readline APIs. Bash doesn't do that. Nor did I think it was the right approach to the problem. > Note that in the attached patch the functions in Readline library, > `_rl_get_keyname' and `_rl_untranslate_macro_value', were made public > and used from Bash codes. I think it is worth to make them a part of > public interface of Readline library. I'm not convinced. I appreciate the reminder, though. This was still on my list of issues to look at, so I took a look. It takes maybe a dozen lines of code, and no modifications to readline, to solve the problem with `bind -r'. There are a couple of other remaining issues, but that one was easy. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/