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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4155 invoked from network); 23 Jul 2022 07:56:19 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 23 Jul 2022 07:56:19 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 2197C406FD; Sat, 23 Jul 2022 17:56:14 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuhs.org; s=dkim; t=1658562974; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=u2NePKeqgqABiwRnmPWWEJ3F3MAKOg9z/oaB/n2Ie6A=; b=PqH+Bm6TQuQa8wlD44Yh7pnFfhgNdqpXxdzHTqk9561K7S50FMPn5O2uq2Nkx2tOCEbz6Z 9JKE2QOivWAgFb/W/YJ8JFh62HL2bvRWNVIwYXA3bVzgJiYSY1Seren+7MzIDkbGFPbkJ1 Yg3XZTX2DztC6vLUd1n/EgaP8XMgjtU= Received: from mail-4318.protonmail.ch (mail-4318.protonmail.ch [185.70.43.18]) by minnie.tuhs.org (Postfix) with ESMTPS id 0C0F1406D8 for ; Sat, 23 Jul 2022 17:56:08 +1000 (AEST) Date: Sat, 23 Jul 2022 07:55:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1658562965; x=1658822165; bh=u2NePKeqgqABiwRnmPWWEJ3F3MAKOg9z/oaB/n2Ie6A=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:Feedback-ID:From:To:Cc:Date:Subject:Reply-To: Feedback-ID:Message-ID; b=DMRQnWmGAGQnUPCG8TS6nWAgZutz7NaY1rnCt9JPywobWso1kL6QlFBkB5SrhyykF Nbk/SdYoOAe1YVRTdsG+CEyx1FEtpyL3ihqmCr4Jv7i2l1TvqWqBYA3YVcr9tyeTd0 U2C+fCxNyzNyMLubAbDoLAAJgj8BknhU3rI87h9D39gZmOkSc9xcPH7xCjRo8eXkX1 GswhPRCLw0uecdt0MPb4AF9ZJx+F5l8QZQIS8/FE8gcCW9mInliWY+mRm7ib/LhS9D YgOyTrtGYjWY9naDzU8TduENVpEgM1hvGrWcGgoSZCEOUH2EPpPZ7y+Wkjs1ZApOsO J67vhKrSTRvBw== To: markus schnalke Message-ID: <8NgHeeJiYEBE0zhtd9RdKIeYWcAwtxsnAj7YhVIvLpz-yt0__LeFvVzNNGgSNTeDGnVQy-qxkoHWvmRi84ybYyNAiMRDJuVoAaEG96UAu4s=@protonmail.com> In-Reply-To: <1oF87S-4zW-00@marmaro.de> References: <1oF87S-4zW-00@marmaro.de> Feedback-ID: 35591162:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: ER4V5AXODKNHCFINKVQY4R5JSV2BJASM X-Message-ID-Hash: ER4V5AXODKNHCFINKVQY4R5JSV2BJASM X-MailFrom: segaloco@protonmail.com 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 CC: tuhs@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: Line Numbers Before SysIII nl? BSD num? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: segaloco via TUHS Reply-To: segaloco X-Spam: Yes > On Friday, July 22nd, 2022 at 10:56 PM, markus schnalke wrote: > > As I'm currently thinking a lot about ed, this comes to mind: > > echo 23,42n | ed - file The n rule is actually what lead me to studying nl. It's also supported in= System III but not V7, although ed's n does show up in V8-V10. The implem= entation looks similar although integrated slightly differently. Probably = from the same source though. There's also an implementation in 4.4BSD-Lite, although plan old 4.4 with t= he AT&T encumbered ed doesn't implement n. So a rough timeline I can see for line number filters based on source code,= old docs, etc: 1977 - num and ex's '#' commands are introduced for 2BSD release 1980 - nl and ed's 'n' commands are introduced in System III 1980 - num's trail goes dark between 4 and 4.1c BSD 1982 - System V adopts ex, including '#' 1985 - Research has adopted ed with n by now as well as ex, never adopts nl 1992 - POSIX.2 is released, codifying nl, ed with n, and ex with # 1992 - nl appears in GNU fileutils 1994 - 4.4BSD-Lite ed includes n 1999 - NetBSD 1.4 adds nl 2002 - FreeBSD 4.5 adds nl 2005 - MacOSX 10.4 with text_cmds-47 adds nl 2013 - MINIX 3.2.1 adopts NetBSD nl 2014 - OpenBSD 5.5 adds nl So all in all, num was an attempt that petered out, but # stayed in ex. Sy= stem III and 4.4BSD-Lite ed derivatives implement n, and nl was introduced = in System III for the AT&T line and slowly cropped up elsewhere. System V = picked up ex in 1982, allowing nl, ed with n, and ex with # in the AT&T lin= e. GNU had one out of the gate when POSIX hit. BSDs were late to the part= y with regards to both ed with n as well as nl, with nl only being adopted = after the last Berkeley releases and subsequent fracturing. So thus far it seems the earliest line numberer to see wide use was probabl= y ex's #. System III's nl became the ubiquitous tool for the job and was t= hen slowly adopted elsewhere. Ed rides a fine middle ground with the n com= mand that saw wider adoption earlier. I still have to wonder if there was = something earlier though. - Matt