Deutsch   English   Français   Italiano  
<vtd2o9$3ri7f$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Shell command history (was: Useless Use Of Regexes)
Date: Sat, 12 Apr 2025 06:55:05 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <vtd2o9$3ri7f$1@dont-email.me>
References: <vrsfkv$1md7d$1@dont-email.me> <vscr0g$2t8mk$1@dont-email.me>
	<67f23e16$0$5208$426a74cc@news.free.fr> <vt1gne$nigc$2@dont-email.me>
	<eli$2504072204@qaz.wtf> <sm0semin7xo.fsf@lakka.kapsi.fi>
	<vt4hol$3f3to$2@dont-email.me>
	<wv6dnd8snOmoQWj6nZ2dnZfqn_cAAAAA@giganews.com>
	<8l5icl-uad.ln1@ID-313840.user.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 12 Apr 2025 08:55:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2e5924fe3d9905cd5f265cdbfb6deffb";
	logging-data="4049135"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ThRhxU9trO/tgyXrgHIdU"
User-Agent: Pan/0.162 (Pokrosvk)
Cancel-Lock: sha1:nriGT5lexKhK62p0KJ7OvoMD92A=
Bytes: 2769

On Wed, 9 Apr 2025 13:26:48 +0100, Geoff Clare wrote:

> On 4/8/25 9:16 PM, Lawrence D'Oliveiro wrote:
>
>> On Tue, 08 Apr 2025 15:39:47 +0300, Anssi Saari wrote:
>> 
>>> The only time I've had to use vi command history editing was with
>>> some old version of VxWorks. It was the only kind included by
>>> default. I ended up teaching some colleagues on how to edit the
>>> command line, vi style.
>> 
>> 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?

> After the shell writes a command prompt, it is
> in insert mode, so you just type a command as normal.  To edit the
> current command, or search the history, you type ESC to get out of
> insert mode and then perform the edit or search just like in vi (except
> that RETURN executes the edited command instead of moving to the next
> "line").

Seems like a lot of unnecessary back-and-forth.

> It became an IEEE standard in 1992 (and ISO in 1993) for
> POSIX-conforming shells, and has remained standard to this day. IEEE
> chose not to include emacs mode, so effectively it is emacs mode that
> was treated as obsolete (in 1992).

Nevertheless, that is the one that is most commonly used in *nix systems 
today.