Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!panix!.POSTED.panix5.panix.com!qz!not-for-mail From: Eli the Bearded <*@eli.users.panix.com> Newsgroups: comp.os.linux.misc Subject: Re: Shell command history (was: Useless Use Of Regexes) Date: Sat, 12 Apr 2025 23:55:52 -0000 (UTC) Organization: Some absurd concept Message-ID: References: <8l5icl-uad.ln1@ID-313840.user.individual.net> Injection-Date: Sat, 12 Apr 2025 23:55:52 -0000 (UTC) Injection-Info: reader1.panix.com; posting-host="panix5.panix.com:166.84.1.5"; logging-data="26255"; mail-complaints-to="abuse@panix.com" User-Agent: Vectrex rn 2.1 (beta) X-Liz: It's actually happened, the entire Internet is a massive game of Redcode X-Motto: "Erosion of rights never seems to reverse itself." -- kenny@panix X-US-Congress: Moronic Fucks. X-Attribution: EtB XFrom: is a real address Encrypted: double rot-13 Xref: csiph.com comp.os.linux.misc:67078 In comp.os.linux.misc, Lawrence D'Oliveiro wrote: > On Wed, 9 Apr 2025 13:26:48 +0100, Geoff Clare wrote: >> On 4/8/25 9:16 PM, Lawrence D'Oliveiro wrote: >>> Seems a bit dumb, having to go into insert mode every time you >>> actually want to type a command. >> That's not how it works. > > But that’s how the vi/vim editor family works. Are you saying that a > command-line editor that is supposed to work like those editors doesn’t in > fact, emulate them entirely faithfully? It is not advertised as an "entirely faithfully" emulation. In fact, the crappy vi-mode in early versions of bash is why I ended up preferring ksh, which I still use to this day when available. It is advertised as "vi-style command line editing interface" in recent bash and readline man-pages, and "a vi style in-line editor" in ksh's manpage. One of the key differences, which is very helpful for shell usage, is every line starts in insert mode. Other things missing from "vi-style" (or "vi style") are the : commands and most multiline movement commands, eg H, L, M (, ), {, }, [[, ]], and gg. But G does work to go to oldest item in history. Elijah ------ overall it works better than the vi included with busybox