On 7/10/25 7:03 PM, Vincent Lefevre wrote:
On 2025-07-10 10:48:40 -0400, Chet Ramey wrote:
There is no difference. Since you're always at the end of the line --
you can't move the cursor around using the system's tty driver -- deleting
the characters between the cursor and the beginning of the line and erasing
the current line are the same thing. The readline interpretation is valid,
and shared by other shells (yash, mksh, etc.).

This is the case for yash (and BusyBox sh), but both ksh93 and mksh
delete the whole line, and zsh also deletes the whole line (I have
tried with "zsh -f" to ensure that my own settings are ignored).
Tested on a Debian/unstable machine (close to the upcoming stable).

So, kill-whole-line would be closer to the behavior of the other shells
(ksh93, mksh and zsh are much more common than yash and BusyBox sh).

OK, if you want that, then set it in .inputrc and disable
`bind-tty-special-chars'.

--
``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/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to