Sujet : TIL: Korn shell Ctrl-O: submit and stay in history.
De : 643-408-1753 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.unix.shellDate : 01. Jul 2024, 04: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/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca