[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix READLINE_ARGUMENT with "M-1 M-2" and with `vi-arg-digit'
From: |
Chet Ramey |
Subject: |
Re: [PATCH] Fix READLINE_ARGUMENT with "M-1 M-2" and with `vi-arg-digit' |
Date: |
Mon, 28 Jun 2021 15:33:33 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 6/27/21 8:12 AM, Koichi Murase wrote:
Description:
Now "bind -x" can be used with numeric arguments when the numeric
arguments are specified by e.g. "M-1 2 3". However, when the
numeric arguments are specified by e.g. "M-1 M-2 M-3", it still fails
with the error message `bash_execute_unix_command: cannot find
keymap for command'. It fails too when the arguments are specified
through `vi-arg-digit' in the vi-command map.
Thanks for the report. Wow, do people use M-1 M-2 to specify multiple-
digit arguments?
Anyway, I don't see how this code can work if the command following the
digit argument is something like M-a that traverses into a new keymap.
It should return M-a ("\ea"), but it looks like it will just return "a".
--
``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/