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 c...@case.edu http://tiswww.cwru.edu/~chet/