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=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23397 invoked from network); 11 Jul 2022 14:41:18 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2022 14:41:18 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id E898B40927; Tue, 12 Jul 2022 00:40:54 +1000 (AEST) Received: from marmaro.de (marmaro.de [176.28.23.198]) by minnie.tuhs.org (Postfix) with ESMTP id F29C840122 for ; Tue, 12 Jul 2022 00:40:46 +1000 (AEST) Received: by marmaro.de (masqmail 0.3.6-dev, from userid 1000) id 1oAuab-7jq-00 for ; Mon, 11 Jul 2022 16:40:45 +0200 To: TUHS main list In-reply-to: References: User-Agent: meillo's mail handler (mmh) X-License: CC0 (http://marmaro.de/rights) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29749.1657550445.1@marmaro.de> Content-Transfer-Encoding: quoted-printable Date: Mon, 11 Jul 2022 16:40:45 +0200 From: markus schnalke Message-ID: <1oAuab-7jq-00@marmaro.de> Message-ID-Hash: GFWFY3UTVWG5SZASVTPLZDAIVYFJUONS X-Message-ID-Hash: GFWFY3UTVWG5SZASVTPLZDAIVYFJUONS X-MailFrom: meillo@marmaro.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: ed: multiple addresses (with semicolons) List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hoi, thanks to everyone helping me with links. As you already mentioned: [2022-07-08 23:36] Douglas McIlroy > > Neither tells about extra address fields or semicolons The best I could find was this paper by DMR: https://www.bell-labs.com/usr/dmr/www/qedman.html There he writes: Sequences of two or more addresses are separated either by "," or by ";". In the latter case "." is set to the preceding address before the succeeding address is evaluated. The semicolon is used mostly to control the starting line for context searches. = Later in the bootstrapping explanation appears a command with an address chain: O;/./;.mf "move filename (if there) to bf I couldn't really understand this stuff. It seems to be specific to this version of qed and the underlying operating system. Nevermind, this leaves my focus of interest. More was I curious about the documentation of address chains in books. - ``The Unix Programming Environment'' does neither mention address chains nor semicolon separators. - SRB's ``The Unix System'' (an often overlooked but great book) explains the semicolon separator in a one-paragraph section on page 33. - ``Software Tools'' goes into the most detail that I could find. On pages 170 f. (section 6.2) it explains the semicolon separator and address chains with this example: /#/;//;//;//;//p prints from the third succeeding line containing # to the fourth, inclusive. Right thereafter (pages 172 and 173; section 6.3) the implementation of getlist() -- collect line numbers -- follows, which, as expected, is in a similar style as the actual implementation in Unix at that time (v6): https://www.tuhs.org/cgi-bin/utree.pl?file=3DV6/usr/source/s1/ed.c See function commands() meillo