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,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1371 invoked from network); 5 Jul 2021 05:24:18 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 5 Jul 2021 05:24:18 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id A3D959CA3E; Mon, 5 Jul 2021 15:24:14 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 5CD8F9C9F1; Mon, 5 Jul 2021 15:23:19 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cDlIdTRo"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 7A5E29C9F1; Mon, 5 Jul 2021 15:23:16 +1000 (AEST) Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) by minnie.tuhs.org (Postfix) with ESMTPS id 1644C9C9F0 for ; Mon, 5 Jul 2021 15:23:15 +1000 (AEST) Received: by mail-ed1-f45.google.com with SMTP id l24so22124038edr.11 for ; Sun, 04 Jul 2021 22:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cslyKXm4q6tqP/Zz8DkQNlIPPLaSzlD1/vLHeLf5/Cs=; b=cDlIdTRopZDEz7pPAuuksAHn6PWKCEAnO6jO/Wf0gXZjZei8SWLTUEeLjbwOW7QY7+ bA7i0163MmbA7cj4SZ5LmwKldOMhnStGGiqVdqOfjyGDfpUs1bzTtVzTT54VDg0kX4h2 2q8HlQG4zndnMmCtpS+XIlYODpbwXBKUdHRVJCqNpLnOflwOTZVgYYQOCCVA/OCt0V3V ilCWO8caxOqXS90hYZNL4j7uX75iOSX9DftzIv9F8F3N5jGpObLo43UrYLmBSfAp7g2Z NtAD26khb7itBBhy31opEf0kaaH3muk021PzeDSBUI3AQ3rytpdBjrzp7e7qEeQOfvu5 0KDw== 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=cslyKXm4q6tqP/Zz8DkQNlIPPLaSzlD1/vLHeLf5/Cs=; b=m6Yd/vEQe9wajX3CAzEoLQbXNozq3lDdigNi9fRm0b1J14rmv8eaEic5Zy5KJ9ap0y C1OTHgHdN0TJxfIKNDUIBzD7UOEia8yEXKC7RnNewJVwajX5zRjD7p/bza/Zv9d64SkT Daf4GeoAwVOmjBorqEVEiOza8bjR/knof7DIWhukRgyNDFpxq9G8CQhRXbYcwvJZk5sg B68RIw9IV3ddbJZ0viUVxm3SE/YDBFJoisf1t77A1wTlQdw9wXosNznFdmejm1+fXfKw KXlCIu/pNYK2BxOUannSnlOHeUhJZMz5YKzG0tWOBIy4hGogEOiCFqTrjR4dH+ZPXnhD ReYw== X-Gm-Message-State: AOAM532fMmKagBCDK+YsYqiS10v8nZvNlO9osvuDsDxG2C/qjj1Hlp2i ZT8J1e5uEqZwYuGSIDGT8qOLTaXasHjj/z1OOnS0h7Adexc= X-Google-Smtp-Source: ABdhPJxXUbbBKUFSj9pMu8Tj0e+cA7s8sCdOo6ELsd9iVH0kGrSW9afkyeSsg8oZa/blD5oTCVGd1Snstwd3vMhNDOk= X-Received: by 2002:aa7:c450:: with SMTP id n16mr13737761edr.58.1625462593540; Sun, 04 Jul 2021 22:23:13 -0700 (PDT) MIME-Version: 1.0 References: <06737C14-1122-4832-BCAA-A37B242F69E4@me.com> In-Reply-To: From: Noel Hunt Date: Mon, 5 Jul 2021 15:22:47 +1000 Message-ID: To: Clem Cole Content-Type: multipart/alternative; boundary="0000000000007bd51e05c65980e4" Subject: Re: [TUHS] [tuhs] The Unix shell: a 50-year view 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 Unix Heritage Society mailing list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000007bd51e05c65980e4 Content-Type: text/plain; charset="UTF-8" Thank you for the correction. Having only used Unix from Seventh Edition on, research-editions only, I have never used head(1) and didn't realize it was written so early. On Mon, Jul 5, 2021 at 12:38 PM Clem Cole wrote: > Noel. Pls check the TUHS archives and I think you will see sed does yet > exist in 6th edition when Joy wrote head in 1977. Certainly not yet at > UCB. > > On Sun, Jul 4, 2021 at 9:34 PM Noel Hunt wrote: > >> > But note that when wnj wrote head(1), Joy followed the >> > famous `Unix Philosophy' of doing one (small) job >> > well. Which means he did not add a feature *i.e.* >> > abusing, an old program, like cat(1), and add some new >> > switch to it that that told the program stop outputting >> > after n lines. Instead Joy wrote a simple new tool. >> >> He didn't need to abuse any existing program by adding new >> flags or the like; unless I am mistaken, `sed Nq', for some >> number `N', does exactly what `head -N' would do on a single >> file, obviating the very need for head(1). >> >>> -- > Sent from a handheld expect more typos than usual > --0000000000007bd51e05c65980e4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you for the correction. Having only used Unix from Seven= th
Edition on, research-editions only, I have never used head(1) and
=
didn= 't realize it was written so early.


On Mon, Jul 5, 2021 at 1= 2:38 PM Clem Cole <clemc@ccc.com>= ; wrote:
Noel.=C2=A0 Pls check the TUHS archives and I think you will see= sed does yet exist in 6th edition when Joy wrote head in 1977.=C2=A0 Certa= inly not yet at UCB. =C2=A0

On Sun, Jul 4, 2021 at 9:34 PM Noel Hunt &l= t;noel.hunt@gmail.= com> wrote:
> But note that when wnj wrote head(1), Joy followed the=
> famous `Unix Philosophy' of=C2=A0 doing one (small) job
>= ; well.=C2=A0 =C2=A0Which means he did not add a feature *i.e.*
> abu= sing, an old program, like cat(1), and add some new
> switch to it th= at that told the program stop outputting
> after n lines.=C2=A0 Inste= ad Joy wrote a simple new tool.

He didn't need to abuse any exis= ting program by adding new
flags or the like; unless I am mistaken, `sed= Nq', for some
number `N', does exactly what `head -N' would= do on a single
file, obviating the very need for head(1).

--
Sent from a handheld expec= t more typos than usual
--0000000000007bd51e05c65980e4--