On 9/18/16 9:45 AM, Nuzhna Pomoshch wrote:
> Reported this in 201507:
> 
> http://lists.gnu.org/archive/html/bug-readline/2015-07/msg00000.html
> 
> http://lists.gnu.org/archive/html/bug-readline/2015-07/msg00001.html

It's not all that mysterious.  Your DEL key outputs the key sequence
"^[[3~" (ESC, [, 3, ~).  That key sequence isn't bound to anything by
default.

If readline finds the string assigned to the termcap `kD' (terminfo
`kdch1') capability, it will bind it to delete-char, but it doesn't appear
that this is the case on your system.  It's done this since at least
bash-3.1/readline-5.1.

Your erase key is ^H.  I presume that's what the erase/rubout key on
your keyboard produces.

When you press DEL, it outputs the key sequence above.  The sequence
isn't bound to anything, so each character is treated separately.  The
ESC takes you into vi command mode, the `[' is unbound, the `3' introduces
a digit argument, and the ~ command toggles case.

If the version of readline-6.2 released by your vendor binds that sequence
to delete-char, you'll get the behavior you observe.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
Bug-readline@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to