TIL: Korn shell Ctrl-O: submit and stay in history.

Liste des GroupesRevenir à cu shell 
Sujet : TIL: Korn shell Ctrl-O: submit and stay in history.
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shell
Date : 01. Jul 2024, 05:42:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240630203845.599@kylheku.com>
User-Agent : slrn/pre1.0.4-9 (Linux)
In 2015, I implemented a feature in the TXR Lisp Listener.
While recalling lines from history, you can use Ctrl-X Enter
to run a line, such that it will stay in the history and move
to the next line.

I had not seen this anywhere before that, nor anywhere since;
it was my independent idea.

TIL: GNU Readline introduced this in 2021 as Ctrl-O.

A comment in the code in misc.c says that it's from the Korn shell
(also as Ctrl-O there).

I see in ksh93 sources that it goes at least as far back as 2012,
possibly farther. (On their trunk, it appears in a giant patch bomb
commit from 2012 whose commit message list a huge swath of issues.)

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Date Sujet#  Auteur
1 Jul 24 * TIL: Korn shell Ctrl-O: submit and stay in history.2Kaz Kylheku
1 Jul 24 `- Re: TIL: Korn shell Ctrl-O: submit and stay in history.1Janis Papanagnou

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal