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.9 required=5.0 tests=HTML_MESSAGE, MAILING_LIST_MULTI,MIME_HTML_ONLY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5139 invoked from network); 31 Dec 2021 19:02:02 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 31 Dec 2021 19:02:02 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id AD5819D035; Sat, 1 Jan 2022 05:02:01 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id AEE7D9CF51; Sat, 1 Jan 2022 05:01:48 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 30EB69CF51; Sat, 1 Jan 2022 05:01:47 +1000 (AEST) Received: from firemail.de (firemail.de [88.99.137.45]) by minnie.tuhs.org (Postfix) with ESMTPS id 6BDC59CF06 for ; Sat, 1 Jan 2022 05:01:45 +1000 (AEST) Received: from firemail.de (127.0.0.1 [127.0.0.1]) by firemail.de (b1gMailServer) with ESMTP id 754C0EC9 for ; Fri, 31 Dec 2021 20:01:43 +0100 (CET) Date: Fri, 31 Dec 2021 20:01:43 +0100 MIME-Version: 1.0 Message-ID: <9f1d20500d6bb61d55068a2a18f7baa7@firemail.de> X-Mailer: b1gMail/7.4.0 X-Sender-IP: 93.209.198.74 From: "Thomas Paulsen" To: "Will Senn" In-Reply-To: References: Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Abuse-Report: abuse@emailn.de Subject: Re: [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: , Reply-To: Thomas Paulsen Cc: tuhs@minnie.tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS"  

Von: Will Senn <will.senn@gmail.com>
Datum= : 31.12.2021 17:15:06
An: TUHS main list <= ;tuhs@minnie.tuhs.org>
Betreff: [TUHS] learn comma= nd in v7

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. C= uz, I figured it out, and it may prove useful to others or with my track re= cord, even myself in the future :).

Learn works fine in v7. It j= ust needs to be properly installed. The command is there already, so you ma= y 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 no= t sure.

=C2=A0
cd /usr/src/cm= d/learn
make
make lessons
make play; make log
<= /span>
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.

Her= e'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<= br />the course you want, followed by 'return'.
macros
If you wer= e 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 t= he "-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 fil= e "decl".  Then
type "ready".

.PP
When in the cou= rse of human events, it becomes
necessary for one people to dissolve t= he political bands which have
connected them with another, and to assu= me among the
powers of the earth the separate and equal station to whi= ch
the laws of Nature and of Nature's God entitle them, a decent
= respect to the opinions of mankind requires that they should
declare t= he causes which impel them to the separation.
$ ed decl
?decl
a
.PP
When in the course of human events, it becomes
neces= sary for one people to dissolve the political bands which have
connect= ed 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 require= s that they should
declare the causes which impel them to the separati= on.
.
w
410
q
$ ready

Good.  Lesso= n 1.1a (1)

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

  nroff -ms fi= le

where "file" is the name of the file it is on.  For exam= ple,
the file "decl" in this directory is in a suitable format
fo= r running off this way.  Do so.  Then type "ready".
$
I= nterrupt.
Want to go on?  n
Bye.
$

=C2=A0
Pr= etty slick, really, once you realize that the $ prompt isn't really your sh= ell, it's a shell within learn. Also, there's no learn manpage although the= re is a document in vol2 of the programmer's manual that describes the prog= ram. 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 Kerni= ghan, MH 6021, 2C-518, or
Mike Lesk, MH 6377, 2C-572.  Thanks.
Enjoy, and happy New Year, folks!

Will
=C2=A0


Gesendet mit Firemail.de - Freemail=