Deutsch English Français Italiano |
<8l5icl-uad.ln1@ID-313840.user.individual.net> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Geoff Clare <geoff@clare.See-My-Signature.invalid> Newsgroups: comp.os.linux.misc Subject: Shell command history (was: Useless Use Of Regexes) Date: Wed, 9 Apr 2025 13:26:48 +0100 Lines: 29 Message-ID: <8l5icl-uad.ln1@ID-313840.user.individual.net> 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> Reply-To: netnews@gclare.org.uk Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net pfn4fJ9dpHCb3JXLU85ymgL8Ifd1kmQC/Eli0lnJjDUK2+4rJ3 X-Orig-Path: ID-313840.user.individual.net!not-for-mail Cancel-Lock: sha1:1+ZywhVQ5q45a+wqSPhF3yH2nPE= sha256:IAtbm3fvTn1BRjhzm/eOducmnD0KbC7h9uxIZiflvUE= User-Agent: Pan/0.154 (Izium; 517acf4) Bytes: 2242 c186282 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. 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"). > It's terrible - and was obsolete already by 1985. 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). -- Geoff Clare <netnews@gclare.org.uk>