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). -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)