On 2025-07-11 01:03:33 +0200, 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).

And that's clearly documented for mksh: in the mksh(1) man page:

      kill-line: KILL (^U)
              Deletes the entire input line.

Ditto for ksh93:

      kill      (User defined kill character as defined by the stty(1)
                command, usually ^U.)  Kill the entire  current  line.

And for zsh:

      kill-whole-line (^U) (unbound) (unbound)
             Kill the current line.

-- 
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)

Reply via email to