|
|
1.1 ! root 1: Note that play directories are created in /tmp, no longer ! 2: in /usr/lib/learn/play. The C script is not complete; ! 3: use at your own risk. The editor script still smacks of ed. ! 4: ! 5: Lessons are in ! 6: /usr/lib/learn/* ! 7: and auxilliary programs are in ! 8: /usr/lib/learn/bin ! 9: ! 10: Make a learn by ! 11: make ! 12: Check that it's sensible with ! 13: make check ! 14: If that doesn't print any messages, ! 15: you're probably in good shape. ! 16: ! 17: Lesson directories may be protected. ! 18: ! 19: Learn collects a log file for each script in the .../learn/log ! 20: directory, with a file for each script (files, editor, etc.) ! 21: containing an entry for each lesson attempted. ! 22: These files will grow without bound, ! 23: unless they are periodically truncated. ! 24: The log files should have general write permission. ! 25: If you don't want logging (a sensible position to take), ! 26: set the variable "logging" to zero in source/learn.c ! 27: before making learn, remove the log directory, or just ! 28: turn off write permission for a particular log file. ! 29: ! 30: Learn requires about 1500 blocks to make itself, ! 31: and about 1000 when completely made. ! 32: ! 33: The best way to get ex to prompt within learn was to modify ! 34: the user's environment variables PATH and EXINIT. ! 35: ! 36: Due to inane assumptions in the VAX versions of csh -i and ex ! 37: when stdin and stdout are not terminals, kludges have been ! 38: added with #if's. In particular, I use the old terminal driver ! 39: to keep #copyout working and make sh -i masquerades as ! 40: a csh -i (by setting PS1=% ) to keep #pipe working. ! 41: ! 42: "#create" can now end in an incomplete last line with ....#\n ! 43: On input the string %s is converted to the lesson directory. ! 44: On output with "#copyout", prompt signs ("% ") are removed. ! 45: "#cmp" now takes a trailing number specifying that only that ! 46: many lines are to be compared. ! 47: ! 48: The new command "xyzzy" prints the answer (i.e. the last part ! 49: of the lesson), and "xyzzy x" prints the whole lesson text. ! 50: A new routine called getlesson tries to construct a valid ! 51: lesson number from in invalid one before giving up. ! 52: The commands "where", "skip", and "again" are also new. ! 53: Greeting, closing, and reminder messages have been expanded. ! 54: ! 55: Please report problems, bad lessons, contributions, etc., to ! 56: John Kunze, UC Berkeley, 415-642-1530, ucbvax!ucbernie.jak . ! 57: Thanks.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.