From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 20005 invoked from network); 30 Mar 2021 00:12:16 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 30 Mar 2021 00:12:16 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 24E609C82E; Tue, 30 Mar 2021 10:12:14 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id B39209C82B; Tue, 30 Mar 2021 10:11:40 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=ccil-org.20150623.gappssmtp.com header.i=@ccil-org.20150623.gappssmtp.com header.b="RF4BZ3Hl"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id E8D979C82B; Tue, 30 Mar 2021 10:11:37 +1000 (AEST) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) by minnie.tuhs.org (Postfix) with ESMTPS id 43BDF9C829 for ; Tue, 30 Mar 2021 10:11:35 +1000 (AEST) Received: by mail-qk1-f181.google.com with SMTP id o5so14323814qkb.0 for ; Mon, 29 Mar 2021 17:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=edpjtr0+nQtHBJZOgjzYSuYT4+67aqccWB508ZFTbRQ=; b=RF4BZ3HlccLxAW2bx2fKcF2ZuTOVb9o4d/ycPICNMBtzWlk1IX2wJJgCpbgGsnFis1 JATtvl7pJot1M4+7uya62IP/QYqPh2gGgE45qSmUL43ekuEqSRQzFBCxH5J5D51EQmgM j3UZ0dywwmZNiC2PaB1dD3a4kdQ02OJEHBVNF7ATNOqjQ5J+rzXtp+8v3vIci/gTir/j qN9O+9C/TKfOvUQpvPETAN+f0h+Z7nYgcgOGf5GLIzTqBr6y0wEj+iHa7OBv7hhtHB8g Uc86PNO53wLpmKH3Eb4A4nhXaG8T/rVPZDZgk1UdN/HjZ8yhQpRfu7dGo0EWFV2ytD1N RNJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=edpjtr0+nQtHBJZOgjzYSuYT4+67aqccWB508ZFTbRQ=; b=S4gRVCeKzjP8bRZ9URmIZ/Macf1QnGJ1fUbkKhETwhmttBSGkb6iHxwVlR71mMLVff KFfWINHkLVXr4VjnTdHf0OHjqlqANWCJHgPC7967rKwwbIaZTyXxAF8mqo4xN3DpLR8i J048NLNJcvf733s0V/33NcxUzlBGSq6hACvfR6oJoNDqao8yX5BUVGqR/cV1qgY2z3Jv cG1clVG1KL5fgwu9wuPHYAUIY11K6BcwcOUZ98mWEwPH3KNASixvRt4K3jsMhpxv5dyV DFGmzaCIBq9TXqHQIKh9TR8jumUYf7xiUyR8UHV2OMWWMhs2tJ5fqYh+QPtHOH8U+Fuy F5Mw== X-Gm-Message-State: AOAM531XtsTSabcjvwanExV0jZHKXDZptRe6n6juewxao5iKFznlxhfh +S7hnf+od9xLj2wGgYtH7zfw3TIG4igtIgLm6+nbd3WEV0/n/9hD X-Google-Smtp-Source: ABdhPJyrugNYZkvxPPoPGWUVz1fM3KlaeF/NDu+1/fsG1/6tR4RH0m02S47A05WzxUhwnplYZXuGqvNbEnLJl/oIXJQ= X-Received: by 2002:ae9:c007:: with SMTP id u7mr27676392qkk.60.1617063094328; Mon, 29 Mar 2021 17:11:34 -0700 (PDT) MIME-Version: 1.0 References: <20210329155812.C66DF640CB6@lignose.oclsc.org> In-Reply-To: <20210329155812.C66DF640CB6@lignose.oclsc.org> From: John Cowan Date: Mon, 29 Mar 2021 20:11:21 -0400 Message-ID: To: Norman Wilson Content-Type: multipart/alternative; boundary="0000000000005134e005beb5d766" Subject: Re: [TUHS] Remember the ed thread? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000005134e005beb5d766 Content-Type: text/plain; charset="UTF-8" On Mon, Mar 29, 2021 at 11:59 AM Norman Wilson wrote: > The b command (stands for browse) came from late-1970s > U of T; rob probably brought it to 1127. It's little things like this that make me use ex rather than ed, though it is spelled z there. Linux ed has z as an extension. > There were a > handful of other syntactic conveniences, like being > allowed to leave off the final delimeter of an s command, > and declaring that a missing address means 1 before the > comma or semicolon and $ after, so > 3,s/fish/&head > works over all lines from 3 to the last, and , standing > alone addresses the whole buffer. > Those things are in Posix now. Linux ed is a superset of Posix; *BSD ed is rather lacking, being based on an old SVID. > Also the idea that s followed by a digit N means start > with the Nth instance of the pattern: > s3/fish/&head/ > affects only the third fish, and > s3/fish/&head/g > every fish after the second. > That's neither Posix ed nor ex, and very annoying it is to lack it. > b. The > < | commands, [...] make qed into a kind of workbench, > both for massaging data and for constructing a list > of commands to send to the shell. > > I gather current Linux/BSD eds have > and <, spelled > r ! and w !, but without | it just ain't the same, > rather like the way | revolutionized the shell. > Ex extends the ! command to accept numeric arguments and has the same semantics. Unfortunately, although "r !" and "w !" are in both Posix ed and ex, in ex "w !foo" means "output to the foo command" whereas "w! foo" means "write to foo, ignoring the internal 'don't overwrite' bit that you can set." I wrote two specs that may be of interest to someone: was my attempt to describe "ex extended" that could still be a lightweight editor by not needing the vi bag on the side. is a list of things that make me not want to use sam -d editing until they are provided in some form. John Cowan http://vrici.lojban.org/~cowan cowan@ccil.org On the Semantic Web, it's too hard to prove you're not a dog. --Bill de hOra --0000000000005134e005beb5d766 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Mar 29, 2= 021 at 11:59 AM Norman Wilson <norma= n@oclsc.org> wrote:
=C2=A0
The b command (stands for browse) came from late-1970s
U of T; rob probably brought it to 1127.

It's little things like this that make me use ex rat= her than ed, though it is spelled z there.=C2=A0 Linux ed has z as an exten= sion.
There were a
handful of other syntactic conveniences, like being
allowed to leave off the final delimeter of an s command,
and declaring that a missing address means 1 before the
comma or semicolon and $ after, so
=C2=A0 =C2=A0 =C2=A0 =C2=A0 3,s/fish/&head
works over all lines from 3 to the last, and , standing
alone addresses the whole buffer.

Those things are in Posix now.=C2=A0 Linux ed is a superset= of Posix; *BSD ed is rather lacking, being based on an old SVID.
Also the idea that s followed by a digit N means start
with the Nth instance of the pattern:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 s3/fish/&head/
affects only the third fish, and
=C2=A0 =C2=A0 =C2=A0 =C2=A0 s3/fish/&head/g
every fish after the second.

That's neither Posix ed nor ex, and very annoying it is to l= ack it.
b.=C2=A0 The > < | commands, [...]=C2=A0make qed into a kind of workbench,
both for massaging data and for constructing a list
of commands to send to the shell.

I gather current Linux/BSD eds have > and <, spelled
r ! and w !, but without | it just ain't the same,
rather like the way | revolutionized the shell.

Ex extends the ! command to accept numeric ar= guments and has the same semantics.=C2=A0 Unfortunately, although "r != " and "w !" are in both Posix ed and ex, in ex "w !foo&= quot; means "output to the foo command" whereas "w! foo"= ; means "write to foo, ignoring the internal 'don't overwrite&= #39; bit that you can set."

<= div class=3D"gmail_default" style=3D"font-family:"times new roman"= ;,serif;font-size:large">I wrote two specs that may be of interest to someo= ne:=C2=A0

https://github.com/johnwcowan/exx/blob/master/exx/exx-features.tx= t> was my attempt to describe "ex extended" that could sti= ll be a lightweight editor by not needing the vi bag on the side.

<https:/= /github.com/johnwcowan/exx/blob/master/sam/sam-extensions.txt> is a = list of things that make me not want to use sam -d editing until they are p= rovided in some form.



John Cowan =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0http://vrici.lojban.org/~cowan =C2=A0 =C2=A0 = =C2=A0 =C2=A0cowan@ccil.org
On the= Semantic Web, it's too hard to prove you're not a dog.
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 --Bill de hOra

=






<= div class=3D"gmail_default" style=3D"font-family:"times new roman"= ;,serif;font-size:large">
--0000000000005134e005beb5d766--