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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15907 invoked from network); 31 Dec 2021 16:15:36 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 31 Dec 2021 16:15:36 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 830059D02D; Sat, 1 Jan 2022 02:15:35 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id B11A79CF51; Sat, 1 Jan 2022 02:15:11 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PxPDsPwY"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id BF27D9CF51; Sat, 1 Jan 2022 02:15:09 +1000 (AEST) Received: from mail-ot1-f53.google.com (mail-ot1-f53.google.com [209.85.210.53]) by minnie.tuhs.org (Postfix) with ESMTPS id 3F5EE9CF06 for ; Sat, 1 Jan 2022 02:15:09 +1000 (AEST) Received: by mail-ot1-f53.google.com with SMTP id a26-20020a9d6e9a000000b0058f37eeb861so33536471otr.9 for ; Fri, 31 Dec 2021 08:15:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:content-language:to:from :subject; bh=gkqqIvjlvuGN27KnjsjFSh1KVbb3WyEcM6mtyqsstJI=; b=PxPDsPwYoY0X3yseYDK9XQAoHHVJJBUqWSK4up3oyyClGTCsYDxqHF0m7n1njVbQPj JzMGVXAYjp3rvZDKe17bXwx4heKR5eC7QIh9tRuvfepUAGThMtLtPuuSiFXtXbnWLSem FUAElUCyzwEn7sirH/EaSOEwzUbZsVVp8gsAM8BHIc65o2sd6C9qC7EBuQhDtYPeisDo Tab6Gi+/XZtQNR3CDl+HWGJv5sboDdRyw7SFMQ48h13SR6xiwuJwcWR2opoxg/HgL609 asa/917nKCag2aj+5dai1dbRz70g8UdSZSRE60y0OEgdsbQCGgHaSD6P+9N666HrkEc0 pUSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:from:subject; bh=gkqqIvjlvuGN27KnjsjFSh1KVbb3WyEcM6mtyqsstJI=; b=m+D7CcM0VVL6mbQXO2DRyj3dtNjeEVq0iueKSe6f/sFrgnhXj7nIkbyjPZkXWT0nwJ OTUcjxKHgW+JaqYKYZivrdhc9ALFuC0HmknBugPcYEnRJ395qrxodcE+daFJgixoBqZr LILgv8hCQFyGMKXudmslz8H4OLvWBshUH5aMfG5tsZK4jXGLpXaVRLWGckQG78Gi3cap ZC95/L/PR+m1mfzh+C0feXj5Ffa9440/p/JAsFKrofO4S0vlcar/zj8JlPBXarplxNWh b5adGryJCDduFHLiuGpVDmMLQqkH77dw7c/22b+oZ7u2ywPg16hdmdlez5t6xtfngs7K oyzg== X-Gm-Message-State: AOAM532qD588bM2UjqZkrVmRMBb7bBrENz9tQd0xsEx9qzuwhKzv3i1X 4Hhm4nzPs4JWXseqEU+GWl49Mo/aK/iJ4g== X-Google-Smtp-Source: ABdhPJzyUuvkSmqVgTBoAPK0IJ6ixj+BQ5uC3toh7jfO3r0nO/2c+fizO9k/WaMjfIjWiAr96TtoUg== X-Received: by 2002:a9d:7f10:: with SMTP id j16mr24523144otq.92.1640967308084; Fri, 31 Dec 2021 08:15:08 -0800 (PST) Received: from [10.8.0.7] ([2.56.190.93]) by smtp.gmail.com with ESMTPSA id f9sm5696086oto.56.2021.12.31.08.15.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 31 Dec 2021 08:15:07 -0800 (PST) Content-Type: multipart/alternative; boundary="------------N1RmG9YoWWzg7YjzHhSezmeN" Message-ID: Date: Fri, 31 Dec 2021 10:15:06 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Content-Language: en-US To: TUHS main list From: Will Senn Subject: [TUHS] learn command in v7 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: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" This is a multi-part message in MIME format. --------------N1RmG9YoWWzg7YjzHhSezmeN Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I'm pretty sure that I asked about learn ages back, but I couldn't find any reference to it in the archives. So, I thought I would close the possibly imaginary loop on it. Cuz, I figured it out, and it may prove useful to others or with my track record, even myself in the future :). Learn works fine in v7. It just needs to be properly installed. The command is there already, so you may not need to follow all of the steps below, but it doesn't hurt: I did this as root, but it could possibly be done as another user, I'm not sure. cd /usr/src/cmd/learn make make lessons make play; make log That's it. make will complain about missing files that it tries to delete, but these can be safely ignored, since make then creates them anyway. Here's the result run as a normal user: $ learn These are the available courses -   files   editor   morefiles   macros   eqn   C If you want more information about the courses, or if you have never used 'learn' before, type 'return'; otherwise type the name of the course you want, followed by 'return'. macros If you were in the middle of this subject and want to start where you left off, type the last lesson number the computer printed. To start at the beginning, just hit return. This script deals with the use of the "-ms" macro package to produce Bell Laboratories style documents. Before trying it, you should be familiar with the editor.  To test that, please enter the file typed below, exactly as is, into file "decl".  Then type "ready". .PP When in the course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth the separate and equal station to which the laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation. $ ed decl ?decl a .PP When in the course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with another, and to assume among the powers of the earth the separate and equal station to which the laws of Nature and of Nature's God entitle them, a decent respect to the opinions of mankind requires that they should declare the causes which impel them to the separation. . w 410 q $ ready Good.  Lesson 1.1a (1) When you have some document typed in "-ms" style, you run it off on your terminal by saying:   nroff -ms file where "file" is the name of the file it is on.  For example, the file "decl" in this directory is in a suitable format for running off this way.  Do so.  Then type "ready". $ Interrupt. Want to go on?  n Bye. $ Pretty slick, really, once you realize that the $ prompt isn't really your shell, it's a shell within learn. Also, there's no learn manpage although there is a document in vol2 of the programmer's manual that describes the program. I couldn't figure out the canonical way to exit, so I just CTRL-DELETE on my mac, which I figure it CTRL-BREAK (^C?). That seems to work. Oh, and according to /usr/src/cmd/learn/README, if you have any trouble: Please report problems, bad lessons, etc., to Brian Kernighan, MH 6021, 2C-518, or Mike Lesk, MH 6377, 2C-572.  Thanks. Enjoy, and happy New Year, folks! Will --------------N1RmG9YoWWzg7YjzHhSezmeN Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm pretty sure that I asked about learn ages back, but I couldn't find any reference to it in the archives. So, I thought I would close the possibly imaginary loop on it. Cuz, I figured it out, and it may prove useful to others or with my track record, even myself in the future :).

Learn works fine in v7. It just needs to be properly installed. The command is there already, so you may not need to follow all of the steps below, but it doesn't hurt:

I did this as root, but it could possibly be done as another user, I'm not sure.

cd /usr/src/cmd/learn
make
make lessons
make play; make log
That's it. make will complain about missing files that it tries to delete, but these can be safely ignored, since make then creates them anyway.

Here's the result run as a normal user:
$ learn
These are the available courses -
  files
  editor
  morefiles
  macros
  eqn
  C
If you want more information about the courses,
or if you have never used 'learn' before,
type 'return'; otherwise type the name of
the course you want, followed by 'return'.
macros
If you were in the middle of this subject
and want to start where you left off, type
the last lesson number the computer printed.
To start at the beginning, just hit return.

This script deals with the use of the "-ms" macro
package to produce Bell Laboratories style documents.
Before trying it, you should be familiar with the
editor.  To test that, please enter the file
typed below, exactly as is, into file "decl".  Then
type "ready".

.PP
When in the course of human events, it becomes
necessary for one people to dissolve the political bands which have
connected them with another, and to assume among the
powers of the earth the separate and equal station to which
the laws of Nature and of Nature's God entitle them, a decent
respect to the opinions of mankind requires that they should
declare the causes which impel them to the separation.
$ ed decl
?decl
a
.PP
When in the course of human events, it becomes
necessary for one people to dissolve the political bands which have
connected them with another, and to assume among the
powers of the earth the separate and equal station to which
the laws of Nature and of Nature's God entitle them, a decent
respect to the opinions of mankind requires that they should
declare the causes which impel them to the separation.
.
w
410
q
$ ready

Good.  Lesson 1.1a (1)

When you have some document typed in "-ms" style,
you run it off on your terminal by saying:

  nroff -ms file

where "file" is the name of the file it is on.  For example,
the file "decl" in this directory is in a suitable format
for running off this way.  Do so.  Then type "ready".
$
Interrupt.
Want to go on?  n
Bye.
$

Pretty slick, really, once you realize that the $ prompt isn't really your shell, it's a shell within learn. Also, there's no learn manpage although there is a document in vol2 of the programmer's manual that describes the program. I couldn't figure out the canonical way to exit, so I just CTRL-DELETE on my mac, which I figure it CTRL-BREAK (^C?). That seems to work.

Oh, and according to /usr/src/cmd/learn/README, if you have any trouble:

Please report problems, bad lessons, etc., to
Brian Kernighan, MH 6021, 2C-518, or
Mike Lesk, MH 6377, 2C-572.  Thanks.

Enjoy, and happy New Year, folks!

Will

--------------N1RmG9YoWWzg7YjzHhSezmeN--