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=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17159 invoked from network); 5 Jul 2021 02:52:29 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 5 Jul 2021 02:52:29 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 6E8FF9CA34; Mon, 5 Jul 2021 12:52:27 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id DC0F59C9F1; Mon, 5 Jul 2021 12:51:44 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=bsdimp-com.20150623.gappssmtp.com header.i=@bsdimp-com.20150623.gappssmtp.com header.b="EukjcEJE"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 8C9F09C9F1; Mon, 5 Jul 2021 12:51:43 +1000 (AEST) Received: from mail-qk1-f180.google.com (mail-qk1-f180.google.com [209.85.222.180]) by minnie.tuhs.org (Postfix) with ESMTPS id 60C069C9F0 for ; Mon, 5 Jul 2021 12:51:42 +1000 (AEST) Received: by mail-qk1-f180.google.com with SMTP id q190so15703155qkd.2 for ; Sun, 04 Jul 2021 19:51:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=t9yiog7TnXAhJXXngR7brfxxFNO+z67ySQyh5Se9U0k=; b=EukjcEJEKCTX4WUNFcT3Zp3frOhgvOjXnd29YM7drbNvDlpRy64Cm897buwcyoXy56 lDM2wweh924sLOAnkOTGc6bFCFSHLpI7QhHUvh2+NqRoQFEMbafyOHiVFpWu/da5rnSe zSunBvbJLxo3aABp7WCTiWvdCuypcWWPXNNuBQvWGo/CzlvwHGby4jFfNl8XaBvoBchK DT4vwvW7YeBmobPj/mbHzdYZKoitKTIZhYDKhPTLzPM6qI88dBMHqvZYR8Lsi7CNWWrR onlFtMgQ0SFpM89BIG2ilnfwZ+WPIJZnQ7unGgQ7zNSn05STF/nm83NkX3+jKDCVz/XX MvDg== 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=t9yiog7TnXAhJXXngR7brfxxFNO+z67ySQyh5Se9U0k=; b=cxjIzdQ9C3RauW+GkxDZsf8rIsU5kxT+ntAbRd+/WBn2f64y0RG96df6dbM0YOhmVd SsoaSp0ktw3Lo2MvVEVFuAd4D4lLwmCcS25P4FxGjlAkUpPEjWgCvGo6kCf/H2uL5Wf9 bW9nolVBuNk5A207L8wQ8p8AXysWSQkTlaQjJxMNU+c9xJNnuFNDVVP3w8PKq7CxylpH EnS8tOM1NXXD5cbn5JBn+iUWDPGupJtaWx2r//fOqXwr2V4fANhXqX6ZZM/cpcGL1F/r mOomRIEmPPdGYHCUinHHsTFsO12N3mJlE9K6XnOK0PRLcArpcZ3wn6BOB7gtXF+ttr3G pDKg== X-Gm-Message-State: AOAM5300acrvs/8Iww1LuN/nxXLfpl++FwnEmF7VohGuX0No2Dg9Tr9Q 3WQ+kArGADzREuSBevs0sau46FP/eQOj/zGx91eSzQ== X-Google-Smtp-Source: ABdhPJyCfas6wEb5pNkd9icDCfZ52xufng5hmJRMQJofwp9o/xSg27v+POlHVWh1j+M4whq5lpfsGKlmerwkELqbBNU= X-Received: by 2002:a37:bfc3:: with SMTP id p186mr11636382qkf.206.1625453501343; Sun, 04 Jul 2021 19:51:41 -0700 (PDT) MIME-Version: 1.0 References: <06737C14-1122-4832-BCAA-A37B242F69E4@me.com> In-Reply-To: From: Warner Losh Date: Sun, 4 Jul 2021 20:51:29 -0600 Message-ID: To: Clem Cole Content-Type: multipart/alternative; boundary="0000000000008bf80105c6576269" 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" --0000000000008bf80105c6576269 Content-Type: text/plain; charset="UTF-8" On Sun, Jul 4, 2021, 8:39 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. > V6 doesn't have sed. Warner 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 > --0000000000008bf80105c6576269 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Jul 4, 2021, 8:39 PM Clem Cole <clemc@ccc.com> wrote:
Noel.=C2=A0 Pls check the TUHS archives a= nd I think you will see sed does yet exist in 6th edition when Joy wrote he= ad in 1977.=C2=A0 Certainly not yet at UCB.=C2=A0=C2=A0
<= /div>

V6 doesn't hav= e sed.

Warner

On Sun, Jul 4, 2021 at 9:34 PM Noel Hunt <noel.hunt@= gmail.com> wrote:
> But note that when wnj wrote head(1), Joy followed the
> fa= mous `Unix Philosophy' of=C2=A0 doing one (small) job
> well.=C2= =A0 =C2=A0Which means he did not add a feature *i.e.*
> abusing, an o= ld program, like cat(1), and add some new
> switch to it that that to= ld the program stop outputting
> after n lines.=C2=A0 Instead Joy wro= te a simple new tool.

He didn't need to abuse any existing progr= am 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 s= ingle
file, obviating the very need for head(1).

<= div class=3D"gmail_quote">
--
Sent from a handheld expect more typos than usual
--0000000000008bf80105c6576269--