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 30255 invoked from network); 15 Jul 2021 22:13:22 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 15 Jul 2021 22:13:22 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id BBC509C7F0; Fri, 16 Jul 2021 08:13:20 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 3C67D9C7F7; Fri, 16 Jul 2021 08:13:07 +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="bnbh2Axd"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id EB9599C7F7; Fri, 16 Jul 2021 08:13:05 +1000 (AEST) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) by minnie.tuhs.org (Postfix) with ESMTPS id 4FDC59C7F1 for ; Fri, 16 Jul 2021 08:13:05 +1000 (AEST) Received: by mail-qt1-f176.google.com with SMTP id d15so5661739qte.13 for ; Thu, 15 Jul 2021 15:13:05 -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=lUHEdeB5L7BSxyWdYYWCtorX0PT/17mN450k822/AXs=; b=bnbh2AxdcSPaG+OXLJDzbu1i9O64kc/RpbhEKIjKhqWRENiG7kMRod9TBPVlXsyQem OmQYFG+0ftloRK/VTmY17RFvDHciIohsxfEK6Hr+GKsmJDFqD9NSWXX1WeL4lJzBDrN8 Qc6zxS1cGYhuE6uUR9v5NXGMsYMvrAblICGXJ326sJiSk8z0GL90l+jkjdKStu0uLUlI M8LN1k0ChE94fgbYLl+R2fjs6VlWn7/8yxcnMAdKIkG3gn7ljVbX5GMASLnsws3g7NXU P56vrHfNatSy0vtz2m23ONV2y1lahi0JxO3xRu0bUHKlq/y/b/YRxOs00kuI4EV+hDte k74Q== 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=lUHEdeB5L7BSxyWdYYWCtorX0PT/17mN450k822/AXs=; b=sqcmaYHwkHErToXyfFJPgBj7qiDr7GsvMSBPM2HdatjQRbDzWRuJFda/TmH6W6hWeT SQS39YfFN9QjTNUNcv+cIfbPiwwUibQt5rJEmpGlAJBphnq4LlMX4KwQbF4i92EizRy9 fbPW+KVntXaQWk/MPyt/SdElYnPU8401exgp10SiCKgjlIahAyFwa8v4nkxuK8HdSUoV 7mTgtppxPC31vPSlbMKz5MTjREqoeKX6odxBZ6T9rD2MLk62FolFfsF4Id24JM+hBUE6 QytDO8tjx5u8/JVqzwfwy033qXzJvTrI89DTLIfN2N7uYPiA3zgfUl0IsvPFWnlrXEeY OCAg== X-Gm-Message-State: AOAM532QZcolHTD7g0fIzTL+uPS8pSrZoobrAQeiqrW9RmZpnm1hwfTr z/wI1xrwDovMrnUqQe8laH0szUQrzBCBMJwUTDx0Uw== X-Google-Smtp-Source: ABdhPJw/OvBc/9K8GOyUtrTDVzDNwh6bzunrNMFnXI4y3HgJmH8RhoNNQSJoljIASfyZghNn5oh/C0OOb6UQ6NmswF8= X-Received: by 2002:ac8:5508:: with SMTP id j8mr6025844qtq.56.1626387184075; Thu, 15 Jul 2021 15:13:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Cowan Date: Thu, 15 Jul 2021 18:12:52 -0400 Message-ID: To: Douglas McIlroy Content-Type: multipart/alternative; boundary="0000000000005fd59805c730c6ca" Subject: Re: [TUHS] head/sed/tail (was 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: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --0000000000005fd59805c730c6ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jul 15, 2021 at 6:00 PM Douglas McIlroy < douglas.mcilroy@dartmouth.edu> wrote: > I'm showing my age. tail -f antedated select(2) and was implemented > by alternately sleeping and reading. select(2) indeed overcomes that > clumsiness. > A fd at EOF is considered by select and friends to be ready, as it is possible to read from it without hanging. > -r came from Bell Labs. This reinforces the point that the ancients > had their imperfections. > A Unix zealot, having heard that Master Foo was wise in the Great Way, came to him for instruction. Master Foo said to him: =E2=80=9CWhen the Patriarch Thompson invented Unix, he did not understand i= t. Then he gained in understanding, and no longer invented it.=E2=80=9D =E2=80=9CWhen the Patriarch McIlroy invented the pipe, he knew that it woul= d transform software, but did not know that it would transform mind.=E2=80=9D =E2=80=9CWhen the Patriarch Ritchie invented C, he condemned programmers to= a thousand hells of buffer overruns, heap corruption, and stale-pointer bugs.= =E2=80=9D =E2=80=9CTruly, the Patriarchs were blind and foolish!=E2=80=9D The zealot was greatly angered by the Master's words. =E2=80=9CThese enlightened ones,=E2=80=9D he protested, =E2=80=9Cgave us th= e Great Way of Unix. Surely, if we mock them we will lose merit and be reborn as beasts or MCSEs.=E2=80=9D =E2=80=9CIs your code ever completely without stain and flaw?=E2=80=9D dema= nded Master Foo. =E2=80=9CNo,=E2=80=9D admitted the zealot, =E2=80=9Cno man's is.=E2=80=9D =E2=80=9CThe wisdom of the Patriarchs=E2=80=9D said Master Foo, =E2=80=9Cwa= s that they *knew* they were fools.=E2=80=9D Upon hearing this, the zealot was enlightened. --0000000000005fd59805c730c6ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Jul 15, 2= 021 at 6:00 PM Douglas McIlroy <douglas.mcilroy@dartmouth.edu> wrote:
=C2=A0<= /div>
I'm showing my a= ge. tail -f antedated select(2) and was implemented
by alternately sleeping and reading. select(2) indeed overcomes that
clumsiness.

A fd a= t EOF is considered by select and friends to be ready, as it is possible to= read from it without hanging.
-r came from Bell Labs. This reinforces the point that the ancients
had their imperfections.

A Unix zealot, havi= ng heard that Master Foo was wise in the Great Way, came to him for instruc= tion. Master Foo said to him:

=E2=80=9CWhen the Patriarch Thompson i= nvented Unix, he did not understand it. Then he gained in understanding, an= d no longer invented it.=E2=80=9D

=E2=80=9CWhen the Patriarch McIlro= y invented the pipe, he knew that it would transform software, but did not = know that it would transform mind.=E2=80=9D

=E2=80=9CWhen the Patria= rch Ritchie invented C, he condemned programmers to a thousand hells of buf= fer overruns, heap corruption, and stale-pointer bugs.=E2=80=9D

=E2= =80=9CTruly, the Patriarchs were blind and foolish!=E2=80=9D

The zea= lot was greatly angered by the Master's words.

=E2=80=9CThese en= lightened ones,=E2=80=9D he protested, =E2=80=9Cgave us the Great Way of Un= ix. Surely, if we mock them we will lose merit and be reborn as beasts or M= CSEs.=E2=80=9D

=E2=80=9CIs your code ever completely without stain a= nd flaw?=E2=80=9D demanded Master Foo.

=E2=80=9CNo,=E2=80=9D admitte= d the zealot, =E2=80=9Cno man's is.=E2=80=9D

=E2=80=9CThe wisdom= of the Patriarchs=E2=80=9D said Master Foo, =E2=80=9Cwas that they=C2=A0*knew* they were fools.=E2=80=9D

Upo= n hearing this, the zealot was enlightened.
=C2=A0
--0000000000005fd59805c730c6ca--