home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / ZCPR33 / TCJ / TCJ31.WS < prev    next >
Text File  |  2000-06-30  |  72KB  |  1,484 lines

  1.      In my last column I said that I would discuss the progress I have beenì
  2. making with a new version of ZEX, the memory-based batch processor forì
  3. ZCPR3.  As frequently happens, however, another subject has come up andì
  4. preempted my attention.  I thought I would still get to ZEX later in thisì
  5. column, but the column is already by far the longest I have written.  So ZEXì
  6. and other matters planned for this time will have to wait.  For ZEX that isì
  7. not a bad thing, since I still have a lot of work to do on it, and by twoì
  8. months from now there should be considerably more progress.
  9.  
  10.  
  11.                          L'Affaire ARUNZ: J'Accuse
  12.  
  13.  
  14.      Not too long ago in a message on Z-Node Central, David McCord -- sysopì
  15. of the board and vice president of Echelon -- leveled a serious accusationì
  16. against me: that I have failed to provide proper documentation for my ARUNZì
  17. program.  I immediately decided to mount a vigorous defense against thisì
  18. scurrilous charge using all the means at my disposal, including the awesomeì
  19. power of the press (i.e., this column in The Computer Journal).
  20.  
  21.      Unfortunately, I find my defense hampered by a small technicality. ì
  22. True, many other people, faced with this very same impediment, haveì
  23. seemingly not been discouraged in the slightest from proceeding aggressivelyì
  24. with their defense.  However, I lack the character required to accomplishì
  25. this.  What is this technicality?  It is the fact that the charge is true.
  26.  
  27.  
  28.                               Excuses, Excuses
  29.  
  30.      An effective defense being out of the question, perhaps I can at leastì
  31. offer some lame excuses.
  32.  
  33.      First of all, it is not as true as it seems (if truth has degrees) thatì
  34. I have provided no documentation.  There is a help file, ARUNZ.HLP, that atì
  35. this very moment resides, as it has for years, in the HELP: directory on myì
  36. Z-Node RAS (remote access system).  Way back when ARUNZ was first madeì
  37. available to the user community, Bob Frazier was kind enough to prepare thisì
  38. help file for me, and it was included in the LBR file that I put up on my Z-Node.  As a series of upgraded versions appeared, I began to omit the helpì
  39. file to avoid duplication and keep the new LBR files as small as possible. ì
  40. After a while, of course, the original library that did include the helpì
  41. file was removed from RASs.  Hence the impression that there is noì
  42. documentation.  Of course, by now that help file is rather obsolete anyway.
  43.  
  44.      If you are observant, you may have caught in the previous paragraph theì
  45. deliberate circumlocution "made available to the user community".  Why did Iì
  46. avoid the shorter and more natural expression "released"?  Because ARUNZ hasì
  47. still to this day (more than two years -- or is it three now -- after itsì
  48. first 'availability'), not actually been released.  Why?  Because I stillì
  49. have not finished it.  It is still in what I consider to be an incomplete,ì
  50. albeit quite usable, state.  A few more tweaks, a couple of additionalì
  51. features, a little cleaning up of the source code, a detailed DOC file . . .ì
  52. and it should be ready for a full, official release.
  53.  
  54.      ARUNZ is, regrettably, not my only program that persists in this state. ì
  55. It is simply the oldest one.  ZFILER and NZEX (new ZEX) suffer similarly. ì
  56. One might even say that this has become habitual with me.  What happens, ofì
  57. course, is that I don't find the time to code that one little crucialì
  58. additional feature before some other pressing issue diverts my attention. ì
  59. And by the time I do get back to it, I have thought of still another featureì
  60. that just has to be included before the program should be released.
  61.  
  62.      One solution would be not to make the programs available until they areì
  63. really complete.  There are two reasons why I have rejected this approach. ì
  64. First of all, though not complete to my satisfaction, the programs are inì
  65. quite usable condition.  It would be a shame if only I -- and perhaps aì
  66. small group of beta testers -- had been able to take advantage of the powerì
  67. of ARUNZ during these two or three years.
  68.  
  69.      The second problem with holding the programs back is that a lot of theì
  70. development occurs as the result of suggestions from other users, who oftenì
  71. have applications for the program that I never thought of and would neverì
  72. think of.  In a sense, I have chosen to enlist the aid of the entire userì
  73. community not only in the testing process but also in the programì
  74. development process.  And I think we have both benefited from thisì
  75. arrangement.
  76.  
  77.      The procedure I have developed for keeping track of these 'released'ì
  78. test versions is to append a letter to the normal version number.  As Iì
  79. compose this column, ARUNZ stands at version 0.9G, ZFILER stands at 1.0H,ì
  80. and NZEX stands at 1.0D.  When final versions are released, I will drop theì
  81. letter suffixes (except for NZEX, which will become ZEX version 4.0).
  82.  
  83.      The usability of the programs is probably the fundamental factor thatì
  84. keeps them in their incomplete state.  When one of them has some seriousì
  85. deficiency or or simply begs for an exciting new feature, it gets myì
  86. attention.  Once it is working reasonably well, however, I can ignore it andì
  87. devote my attention to other things that badly need fixing.  That is how Iì
  88. recently got started on NZEX.
  89.  
  90.  
  91.                                Making Amends
  92.  
  93.      Since excuses, no matter how excusing, do not solve a problem, I willì
  94. take advantage of this column to make amends for the poor state of the ARUNZì
  95. documentation by providing that documentation right here and now.  I hope itì
  96. will lead more people to make more complete and effective use of ARUNZ,ì
  97. which for me has been the single most powerful utility program on myì
  98. computers.
  99.  
  100.      To understand ARUNZ one must first understand the concept of the ZCPRì
  101. alias, and to understand aliases one must understand the multiple commandì
  102. line facility.  I have written some things about these subjects in earlierì
  103. columns, notably in issues #27 and #28, but I will start more or less fromì
  104. the beginning here.
  105.  
  106.  
  107.                            Multiple Command Lines
  108.  
  109.      One of the most powerful features of ZCPR3 is its ability to acceptì
  110. more than one command at a time and to process these commands sequentially. ì
  111. Quoting from my column in TCJ issue #27:  The multiple command capability ofì
  112. Z System ... is important not so much because it allows the user to enter aì
  113. whole sequence of commands manually but rather because it allows otherì
  114. programs to do so automatically.
  115.  
  116.      Obviously, in order to process multiple commands, the list of commandsì
  117. (at least the unexecuted ones) must be stored in some secure place whileì
  118. earlier ones are being carried out.  In the case of ZCPR3, there is aì
  119. dedicated area, called the multiple command line (MCL) buffer, located inì
  120. the operating system part of memory.  It stores the command line togetherì
  121. with a pointer (a memory address) to the next command to be executed.  Everyì
  122. time the ZCPR3 command processor returns to power, it uses the value of theì
  123. pointer to determine where to resume processing the command line.  Only whenì
  124. the end of the command line is reached does the command processor seek newì
  125. command line input.
  126.  
  127.      Storing multiple commands in memory is not the only possibility. ì
  128. Another secure place to keep them is in a disk file.  This is in some waysì
  129. what the SUBMIT facility does using the file $$$.SUB.  The main drawback toì
  130. this approach is the speed penalty associated with the disk accessesì
  131. required to write and read this file.  There is also always the possibilityì
  132. of running out of room on the disk or of the diskette with the $$$.SUB fileì
  133. being removed from the drive.  Using a memory buffer is faster and moreì
  134. reliable.
  135.  
  136.      Digital Research's most advanced version of CP/M, called CP/M-Plus,ì
  137. also provides for multiple command line entry, but it does it in a ratherì
  138. different, and I think less powerful, way.  When a multiple command line isì
  139. entered by the user, the system builds what is called a resident systemì
  140. extension (RSX), a special block of code that extends the operating systemì
  141. below its normal lower limit.  This RSX holds any pending commands.  Butì
  142. since it is not always present and is not at a fixed, known location inì
  143. memory, there is no straightforward way for programs to manipulate multipleì
  144. command lines.  On the other hand, this method does provide a bigger TPAì
  145. when only single commands are entered.
  146.  
  147.      In a ZCPR3 system, the MCL has a fixed size and is in a fixed location. ì
  148. Moreover, a ZCPR3 program can find out where the MCL is located by lookingì
  149. up the information about it in the ZCPR3 environment descriptor (ENV),ì
  150. another block of operating-system memory containing a rather complete indexì
  151. to the features of the particular ZCPR3 system.  The location of the ENV isì
  152. the one key fact that is conveyed to all ZCPR3 programs.  Prior to ZCPRì
  153. version 3.3, the address of the ENV had to be installed into each programì
  154. manually by the user before the program could be used; with ZCPR33 thisì
  155. installation is performed automatically by the command processor as theì
  156. program is run.
  157.  
  158.  
  159.                              The Alias Program
  160.  
  161.      One of Richard Conn's brilliant concepts in designing ZCPR3 was theì
  162. utility program he called ALIAS, whose function is to create COM files that,ì
  163. in turn, build multiple command lines and insert them into the MCL buffer. ì
  164. When ALIAS is run, it prompts the user for (1) the name of the alias file toì
  165. create and (2) a prototype command line, nowadays called a script.  When theì
  166. resulting COM file is run, it takes the script, uses the information in itì
  167. to construct a complete command line, and then places that command line intoì
  168. the MCL buffer so that the commands it contains will be run.
  169.  
  170.      The simplest script would be nothing more than a completely formedì
  171. command line.  For example, if we wanted to have a command (COM file) thatì
  172. would display the amount of free space on each of drives A, B, and C, weì
  173. could make an alias SPACE.COM containing the script
  174.  
  175.     SP A:;SP B:;SP C:
  176.  
  177. We assume here that our RCP (resident command package) includes the SPì
  178. (space) command.
  179.  
  180.      Such a script can have only a single purpose.  Much more powerfulì
  181. capability is provided when the script can contain parameter expressionsì
  182. that are filled in at the time the command is run.  The aliases produced byì
  183. ALIAS.COM support a number of parameter expressions, including the $1, $2,ì
  184. ... $9 parameters familiar from the SUBMIT facility.  An alias calledì
  185. ASMLINK with a script containing the following command sequence
  186.  
  187.     SLR180 $1
  188.     IF ~ER
  189.     SLRNK /A:100,$1/N,$1,VLIB/S,Z3LIB/S,SYSLIB/S,/E
  190.     FI
  191.  
  192. can then be used to assemble and (if there were no errors in assembly) linkì
  193. any program.  The expression $1 is replaced by the first token on theì
  194. invoking command line after the name of the alias.  A token, we should note,ì
  195. is a contiguous string of characters delimited (separated) by a space or tabì
  196. character.  Thus with the command
  197.  
  198.     ASMLINK MYPROG
  199.  
  200. the string "MYPROG" will be substituted for each of the three occurrences ofì
  201. the expression "$1" in the script to form the command line.  Any commands inì
  202. the MCL after the alias command are appended to the expanded script.
  203.  
  204.  
  205.                             The Advent of ARUNZ
  206.  
  207.      One day it suddenly struck me that Conn-style aliases are extremelyì
  208. inefficient with disk space.  Each one contains, of course, the prototypeì
  209. command line (the script), which is unique and essential to each alias, butì
  210. which is at most about 200 characters long and often much less (17 and 67 inì
  211. the two examples above, if I counted right).  But each one also contains aì
  212. complete copy of the script interpreter and command line manipulation code,ì
  213. about 1K bytes long, which is exactly the same in each alias.  Why not, Iì
  214. thought, separate these two functions, putting all the scripts into aì
  215. single, ordinary text file (ALIAS.CMD) and the alias processing code inì
  216. another, separate file (ARUNZ for Alias-RUN-Zcpr)?
  217.  
  218.      Because there is only a single copy of the ARUNZ code in the systemì
  219. rather than a copy of it with each alias, I felt that I could afford toì
  220. expand the code to include many additional features, in particular much moreì
  221. extensive parameter expansion capability.  These features will be describedì
  222. later.
  223.  
  224.  
  225.                              The ALIAS.CMD File
  226.  
  227.      Let's begin by looking at the structure of the ALIAS.CMD file.  First,ì
  228. we should make it clear that ALIAS.CMD is a plain, ordinary text file thatì
  229. you create using your favorite text editor or word processor (in non¡
  230. document mode).
  231.  
  232.      Each physical line in the file contains a separate alias definition. ì
  233. At present there is no provision for allowing definitions to run over toì
  234. additional lines, so for long scripts your editor has to be able to handleì
  235. documents with a right margin of more than 200 characters.  As I sit hereì
  236. composing this column, it occurs to me that a nice solution to this problemì
  237. might be to allow the ALIAS.CMD file to be created by a word processor inì
  238. document mode and to have WordStar-style soft carriage returns beì
  239. interpreted by ARUNZ.COM as line-continuation characters.  I will experimentì
  240. with that possibility after I finish this column, and if it works there mayì
  241. be an ARUNZ version 0.9H by the time you are reading this.
  242.  
  243.      Each alias definition line contains two parts.  The first part, theì
  244. name field, defines the name or names by which the alias will be recognized,ì
  245. and the second part, the script field, contains the script associated withì
  246. that name or those names.
  247.  
  248.      The name field must start in the very leftmost column (no leadingì
  249. spaces), and the two fields are separated by a space or tab character.  Thusì
  250. ALIAS.CMD might have the following general appearance:
  251.  
  252.     FIRST-NAME-FIELD    first script
  253.     NEXT-NAME-FIELD        next script
  254.     ...            ...
  255.     LAST-NAME-FIELD        last script
  256.  
  257. For ease of reading, I follow the convention of putting the alias name fieldì
  258. in upper case and the script strings in lower case, but you can use anyì
  259. convention (or no convention) you like, since ARUNZ does not generally careì
  260. about case (the sole exception will be described later).
  261.  
  262.      To make the ALIAS.CMD file easier to read, you can include comment andì
  263. formatting lines.  Blank lines are ignored and can be used to separateì
  264. groups of related alias definitions.  Also, any line that begins with aì
  265. space (no name field) will never match an alias name and will thus have theì
  266. effect of a comment line.  You can use this to put titles in front of groupsì
  267. of definitions.
  268.  
  269.      To tell the truth, I always wanted to be able to format the ALIAS.CMDì
  270. file as I just described, but I never got around to adding the code to allowì
  271. it.  As I was sitting here writing just now, I suddenly decided to see whatì
  272. would happen if the ALIAS.CMD file contained such lines.  With BGii inì
  273. operation, a quick '\s' from the keyboard took me to the alternate task, andì
  274. I gave it a whirl.  Imagine my surprise and delight to discover that theì
  275. formatting already works!  No new code is required.
  276.  
  277.  
  278. The Name Field in ALIAS.CMD
  279.  
  280.      The name field can contain a simple name, like SPACE or ASMLINK, butì
  281. more complex and flexible forms are also supported.  First of all, the nameì
  282. field can consist of any number of individual name elements connected by anì
  283. equal sign (with no intervening spaces, since a space would mark the end ofì
  284. the name field).  Thus a line in ALIAS.CMD might have the followingì
  285. appearance:
  286.  
  287.     NAME1=NAME2=NAME3    script string
  288.  
  289.      Secondly, each name element can represent multiple names.  There areì
  290. three characters that have special meanings in a name element.  The first isì
  291. a question mark ('?').  As with CP/M file names, a question mark matches anyì
  292. character, including a blank space.  Thus the alias name DIR? will match anyì
  293. of the following commands: DIR, DIRS, DIRR, and so on.
  294.  
  295.      The second special character is currently the period ('.').  Forì
  296. reasons that I will not go into here (having to do with a new feature underì
  297. consideration for ZCPR34), I may change this to another character (perhapsì
  298. the asterisk), so check the update documentation with any version of ARUNZì
  299. beyond 0.9G.  The period does not match any character, but it signals theì
  300. comparison routine in ARUNZ that any characters after the period areì
  301. optional.  If characters are present in the command name, they must matchì
  302. those in the alias name, but the characters do not have to be present.  Forì
  303. example, the alias name field
  304.  
  305.     FIND.FILE=FILE.FIND
  306.  
  307. will match any of the following commands (and quite a few others as well):ì
  308. FIND, FINDF, FINDFILE, FILE, FILEF, FILEFIND.  It will not, however, matchì
  309. FILES or FINDSTR or FINDFILES.
  310.  
  311.      I have never had any occasion to make use of the capability, but theì
  312. two special characters can be combined in a single name element.  Thusì
  313. FIND.FI?E matches FINDFILE and FINDFIRE but not FINDSTR, and ?DIR.R matchesì
  314. SDIR, SDIRR, XDIR, and XDIRR (but not DIR).  I think you can see that theì
  315. special characters allow for very compact expressions covering many names.
  316.  
  317.      The third special character is the colon (':').  If any name elementì
  318. begins with a colon, then it will match any alias name whatsoever.  This isì
  319. called the default alias, the alias to be run if no other match is found. ì
  320. Since ARUNZ scans through the ALIAS.CMD file from top to bottom searchingì
  321. for a matching name, if the default name is used at all, it makes sense onlyì
  322. as the last alias in the file, since no alias definitions in lines below itì
  323. can ever be invoked.  Note that letters after the colon have noì
  324. significance; you may include them if you wish as a kind of comment.
  325.  
  326.      One possible use for the default alias would be a line like theì
  327. following at the end of the ALIAS.CMD file:
  328.  
  329.     :DEFAULT echo alias $0 not found in alias.cmd
  330.  
  331. If no specific matching alias is found, this default alias will report thatì
  332. fact to the user as a kind of error message.  I do not recommend using theì
  333. default alias in this way, however, because it will interfere with ZCPR33'sì
  334. normal invocation of the error handler when ARUNZ has been set up as theì
  335. extended command processor (ECP) and a bad command is entered.
  336.  
  337.      There is one use of the default alias that can augment the extendedì
  338. command processing power of ZCPR33.  When ARUNZ has been set up as the ECPì
  339. and a command is found neither as a system command, nor COM file, nor ARUNZì
  340. alias, one might want to try running the command from COMMAND.LBR using theì
  341. LX program.  This is a kind of chained ECP operation.  ARUNZ is the firstì
  342. ECP; LX is the second.  This can be accomplished, using version 1.6 or laterì
  343. of LX, by adding the following line at the end of the ALIAS.CMD file:
  344.  
  345.     :ECP-CHAIN lx / $0 $*
  346.  
  347. The meaning of the parameters $0 and $* will be explained later.  With thisì
  348. default alias, if a command cannot be resolved by a specific ARUNZ alias,ì
  349. then an LX command line will be generated to search for a COM file with theì
  350. name of the command in COMMAND.LBR.  The special parameter '/' as the firstì
  351. command line parameter to LX tells LX, when it cannot resolve the commandì
  352. either, to pass to the ZCPR3 error handler only the user command line (i.e.,ì
  353. to omit the "LX / " part of the command).
  354.  
  355.      This might be a good time to note that ARUNZ alias names are notì
  356. limited to only eight characters or to the characters allowed in disk fileì
  357. names.  For example, you have a perfect right to define an alias with theì
  358. name FINDFILES (nine letters) and to invoke it with the command ARUNZì
  359. FINDFILES.  If ARUNZ has been set up as your extended command processor (seeì
  360. my book "The ZCPR33 User Guide" for a discussion of ECPs), then when youì
  361. enter the command FINDFILES, the command processor will first look for aì
  362. disk file FINDFILE.COM, since it truncates the command name to eightì
  363. characters.  If this file is not found, the command processor will then, inì
  364. effect, run ARUNZ FINDFILES, including all nine characters.  I have notì
  365. thought of any uses for aliases with control characters in their names, butì
  366. you can define such aliases if you wish.
  367.  
  368.      Another fine point to be noted is that both leading blank spaces and anì
  369. initial colon are stripped from the command name before scanning for aì
  370. matching alias name.  It is obvious that if leading blanks were notì
  371. stripped, a leading blank would prevent any match from being found.  Theì
  372. colon is stripped so that a command entered as ":VERB" will match an aliasì
  373. name of 'VERB' without the colon.  If a directory specification is includedì
  374. before the colon, it will not be stripped.  When the BADDUECP option isì
  375. enabled in the configuration of ZCPR33, this allows illegal directoryì
  376. specifications to be passed to ARUNZ for processing.
  377.  
  378.  
  379. The Script Field in ALIAS.CMD
  380.  
  381.      The script field in the ALIAS.CMD file contains the prototype commandì
  382. line to be generated in response to a matching alias name.  The scriptì
  383. contains three kinds of items:
  384.  
  385.     (1) characters that are to be put into the command
  386.         line directly
  387.     (2) parameter expressions that ARUNZ is to evaluate
  388.         and convert to characters in the command line
  389.     (3) directives to ARUNZ to perform special operations
  390.  
  391.      There is nothing that has to be said about the first class ofì
  392. characters.  They comprise any characters not covered by the other two sets. ì
  393. The simple example of the SPACE alias, which would appear in ALIAS.CMD as
  394.  
  395.     SPACE sp a:;sp b:;sp c:
  396.  
  397. has only direct characters.  There are no special directives and noì
  398. parameters to evaluate.
  399.  
  400.  
  401. ARUNZ Parameters
  402.  
  403.      ARUNZ supports a very rich set of parameter expressions, which we willì
  404. now describe.  As rich as the set is, there are still important parametersì
  405. that still need to be added.  Some of these will be mentioned later in theì
  406. discussion.  First let's see what we can already do.
  407.  
  408.      Parameters begin with either a caret ('^') or a dollar sign ('$').  Theì
  409. former is quite simple; it is used to signal a control character.  The ASCIIì
  410. representation of the character following the caret is logically ANDed withì
  411. 1FH, and the result is placed into the command line.  Of course, controlì
  412. characters other than carriage return and line feed can equally well beì
  413. placed directly into the script.
  414.  
  415.      At present there is no trap to prevent generating a null characterì
  416. (caret-space will do this: space is 20H, and 20H & 1FH = 00H).  If this isì
  417. used, the resulting null will effectively terminate the command line.  Anyì
  418. characters that come after the null character will be ignored by the commandì
  419. processor.  This could conceivably be useful for deliberately cancellingì
  420. pending commands in a command line, but I have never used it.  In fact, Iì
  421. was surprised to find that I did not have a trap for it.  On thinking aboutì
  422. it now, however, it seems best to continue to allow it.  Just "user beware!"ì
  423. when it comes to employing it.
  424.  
  425.      Parameters introduced by a dollar sign provide much more varied,ì
  426. interesting, and powerful capabilities.  The special ARUNZ directives areì
  427. also introduced by a dollar sign.  A complete list of the characters thatì
  428. can follow the dollar sign, grouped by function, is given below.  Detailedì
  429. discussion of each will follow.
  430.  
  431.     $ ^
  432.     * -
  433.     digit (0..9)
  434.     D U : .
  435.     F N T
  436.     " '
  437.     R M
  438.     I Z
  439.  
  440.  
  441. Character Parameters
  442.  
  443.      The parameters '$' and '^' are provided to allow the two parameterì
  444. lead-in characters to be entered into the command line text.  Many users,ì
  445. present company unhappily included, have made the mistake of trying to enterì
  446. a dollar sign directly into the alias script.  If this is done, the dollarì
  447. sign is (mis)interpreted as a parameter lead-in character.  You must putì
  448. '$$' in the script to get a single dollar sign in the command line.
  449.  
  450.      The worst example I have seen (and committed) of this kind of error isì
  451. in a command like "PATH A0 $$ A0".  This looks perfectly reasonable and doesì
  452. not produce any kind of error message when it runs (as "PATH A0 $0 A0"ì
  453. would, for example, when $0 got expanded to 'PATH').  Unfortunately, it runsì
  454. as "PATH A0 $ A0", where the single dollar sign now means current¡
  455. drive/user-0 (this is perhaps a flaw in the way the PATH works, but that isì
  456. the way it is).  The proper form of the script is
  457.  
  458.     PATH A0 $$$$ A0
  459.  
  460. where each pair of dollar signs turns into a single dollar sign.
  461.  
  462.  
  463. Complete Command-Tail Parameters
  464.  
  465.      The parameters '*' and '-' refer to entire sections of the command lineì
  466. tail.  The asterisk represents the entire tail exactly as the user enteredì
  467. it.  The parameter expression $-n, where 'n' is a number from 0 to 9,ì
  468. represents the command tail less the first 'n' tokens (a token was definedì
  469. earlier).  The parameter $-0 has the same meaning as $*.
  470.  
  471.      Many users have confused 'command line tail' with 'command line'.  Theì
  472. two are not the same.  A command line consists of the command name (theì
  473. 'verb') and the tail.  Thus the command line tail is the command line lessì
  474. the first token.  Perhaps some examples will help.  Suppose the command lineì
  475. is
  476.  
  477.     command token1 token2 token3 token4
  478.  
  479. Then
  480.  
  481.     $*   =    "token1 token2 token3 token4"
  482.     $-2  =  "token3 token4"
  483.     $-4  =  ""
  484.  
  485. Note that $-4 is the null string; that is, $-4 will be replaced by noì
  486. characters at all.
  487.  
  488.      Also note that there is no leading space in the string assigned to $*. ì
  489. ALIAS.COM (and the earliest version of ARUNZ, I believe) had a bug in thisì
  490. respect in that it did include the leading space in the command line tail,ì
  491. since that is how the tail is stored by the command processor in the bufferì
  492. beginning at memory address 0080H.  The script "find $*" when invoked withì
  493. the tail "string" then became "find  string" with two spaces between "find"ì
  494. and "string".  In such a case, Irv Hoff's FIND program failed to work asì
  495. expected, probably because it was looking for " string" with a leadingì
  496. space.
  497.  
  498.  
  499. Complete Token Parameters
  500.  
  501.      The digit parameters '0' through '9' represent the corresponding tokenì
  502. in the command line that is being parsed.  In the example command line aboveì
  503. the digit parameters have the following values:
  504.  
  505.     $0  =  "command"
  506.     $1  =  "token 1"
  507.     $5  =  ""
  508.  
  509. Except for the '0' parameter, these parameters are familiar from the CP/Mì
  510. SUBMIT facility.  The expression $0 is an extension used to represent theì
  511. command verb itself.  Just think of the tokens on the command line as beingì
  512. numbered in the usual computer fashion starting with zero instead of one.  Aì
  513. token that is absent from the command line returns a null string (noì
  514. characters) as with $5 in the above example.
  515.  
  516.      As just mentioned, many users confuse the command line tail and theì
  517. command line.  If you want only the tail, use the parameter $*.  If you wantì
  518. to represent the entire command line, use the expression "$0 $*".  Mostì
  519. often it is the command line tail that is to be passed to a command, and theì
  520. ALIAS.CMD line will read something like
  521.  
  522.     ALIAS realverb $*
  523.  
  524. This is a direct implementation of the common meaning of 'alias' as anotherì
  525. name for something.  When ALIAS is invoked, we simply want to substituteì
  526. 'realverb' for it while leaving the command tail as it was.
  527.  
  528.      There are other occasions, however, as with the LX default aliasì
  529. example given earlier, where the entire command line must be passed.  Thereì
  530. are still other occasions, such as in the first default alias example above,ì
  531. where only the name of the verb used is needed.  Because a given script inì
  532. ALIAS.CMD can correspond to many possible alias names, it is important toì
  533. have a parameter that will return the name that was actually used in anyì
  534. particular instance.
  535.  
  536.  
  537. Token Parsing Parameters
  538.  
  539.      There are many instances in which it is extremely useful to be able toì
  540. break any token down into its constituents.  The parameters  'D', 'U', ':',ì
  541. and '.' do this.  They assume that the token is in the form of a fileì
  542. specification, which may have (1) a directory specification using either aì
  543. named directory or a drive and/or user number; and/or (2) a file name;ì
  544. and/or (3) a file type.  Each of the four parameters above is followed by aì
  545. number from 1 to 9 to designate the token to parse ('D' and 'U' can alsoì
  546. have a 0).  After discussing each one individually, we will give someì
  547. examples.
  548.  
  549.      The parameter 'D' returns the drive specified or implied in theì
  550. designated token.  If there is no directory specification or if only a userì
  551. number is given, then $Dn returns the default (logged) drive at the timeì
  552. ARUNZ constructs the command line.
  553.  
  554.      WARNING -- NOTE WELL: this is not necessarily the drive that will beì
  555. logged in at the time when that part of the command actually executes!! ì
  556. This, too, has been the source of grief in the use of ARUNZ.  ARUNZ has noì
  557. infallible way to know what directory will be logged in when some futureì
  558. command runs; it only knows what directory is the default directory at theì
  559. time ARUNZ itself is running.
  560.  
  561.      The 'U' parameter is similar in all respects to 'D', and the sameì
  562. warning applies.  The parameters $D0 and $U0 can also be used.  They alwaysì
  563. return the default drive and user at the time ARUNZ interprets the script.
  564.  
  565.      The parameter ':' represents the file name part of the token, while theì
  566. parameter '.' represents the file type part of the token.  One way toì
  567. remember the characters for these two parameters is to think that colonì
  568. stands for the part of the token after a colon and period stands for theì
  569. part of the token after a period.  Admittedly, 'N' for name and 'T' for typeì
  570. would have been more sensible, but as we shall see shortly, these areì
  571. already used for something else.
  572.  
  573.      Generally speaking, the entire token can be represented as
  574.  
  575.     $Dn$Un:$:n.$.n
  576.  
  577. where 'n' is a digit.
  578.  
  579.      Let us consider some examples.  Suppose the following command isì
  580. entered at the prompt:
  581.  
  582.     B1:WORK>command root:fn1.ft1 c:fn2 2:.ft3
  583.  
  584. and that COMMAND.COM is not found, so that the command is passed on to ARUNZì
  585. and the extended command processor.  Also assume that the ROOT directory isì
  586. A15.  Then here are the values of the parameters for the four tokens in theì
  587. command:
  588.  
  589.     $D0 = "B"    $U0 = "1"    $0  = "COMMAND"
  590.  
  591.     $1  = "ROOT:FN1.FT1"
  592.     $D1 = "A"    $U1 = "15"    $:1 = "FN1"    $.1 = "FT1"
  593.  
  594.     $2  = "C:FN2"
  595.     $D2 = "C"    $U2 = "1"    $:2 = "FN2"    $.2 = ""
  596.  
  597.     $3  = "2:.FT3"
  598.     $D3 = "B"    $U3 = "2"    $:3 = ""    $.3 = "FT3"
  599.  
  600. Note the value of the following parametric expression:
  601.  
  602.     $D1$U1:$:1.$.1  =  "A15:FN1.FN2"
  603.  
  604. You can see that the 'D' and 'U' parameters can be used to convert a namedì
  605. directory into its drive/user form.
  606.  
  607.  
  608. System File Name Parameters
  609.  
  610.      The ZCPR3 ENV contains four system file names, each with a name and aì
  611. type.  These file names, numbered 0..3, are used by various programs,ì
  612. especially shells.  VFILER and ZFILER, for example, keep the name of theì
  613. file currently pointed to in system file name 1.  These file names can alsoì
  614. be read and set using the utility program SETFILE.
  615.  
  616.      The parameters 'F', 'N', and 'T' followed by a digit from 0 to 3ì
  617. return, respectively, the entire filename (name.typ), file name, and fileì
  618. type of the specified system file.
  619.  
  620.  
  621. User Input Parameters
  622.  
  623.      The single and double quote parameters are used for prompted userì
  624. input.  The forms of the parameter expressions are
  625.  
  626.     $"prompt"   or   $'prompt'
  627.  
  628. When the parameter $" or $' has been detected, any characters in the scriptì
  629. up to the matching parameter character or the end of the script line areì
  630. echoed as a prompt to the user's screen.  These characters are echoedì
  631. exactly as they appear in the script; no conversion to upper case isì
  632. performed.  The prompt string for the double quote parameter can containì
  633. single-quote characters, and the prompt string for the single quoteì
  634. parameter can contain double-quote characters.  There is, at present, no wayì
  635. to include the type of quote character used as the parameter in the promptì
  636. string.
  637.  
  638.      After the prompt has been output to the console, ARUNZ reads in a lineì
  639. of input from the console (user input).  At this point there is a subtle butì
  640. important distinction between the two user input parameters.  The singleì
  641. quote form takes the entire text string entered from the console and placesì
  642. it in the command line.  In particular, this input may contain semicolons,ì
  643. allowing the user to enter multiple commands.  The double quote form ignoresì
  644. a semicolon and any text thereafter.  This is intended for secure systems,ì
  645. where it prevents the user, when prompted for a program option, fromì
  646. slipping in complete additional commands.
  647.  
  648.      One pitfall to which many users have succumbed is the failure toì
  649. appreciate that the user input parameters perform their function at the timeì
  650. that ARUNZ is running and interpreting the script, not when the program inì
  651. the command line is running.  Consider the alias definition
  652.  
  653.     ERAFILE dir $1;era $"File name to erase: "
  654.  
  655. The intention here is to first display a list of the files that match theì
  656. first command line token and then to allow the user to enter the one to beì
  657. erased.  This is not what will happen.  ARUNZ will put up the prompt "Fileì
  658. name to erase: " at the time the command line is being built, i.e., beforeì
  659. DIR is run.  The prompt will come before the directory display.
  660.  
  661.      The way around this problem is to use two ARUNZ aliases as follows:
  662.  
  663.     ERAFILE        dir $1;/eraprompt
  664.     ERAPROMPT    era $"File name to erase: "
  665.  
  666. Now when ERAFILE is run, it will display the directory and then run theì
  667. command "/ERAPROMPT".  The slash here is a ZCPR33 feature that indicatesì
  668. that the command should be sent directly to the extended command processor. ì
  669. This saves the time that would otherwise be wasted searching for a fileì
  670. named ERAPROMPT.COM (actually, ERAPROMP.COM, since the ninth character willì
  671. be truncated from the name).  If you are not running ZCPR33 (but you shouldì
  672. be!!) or are running BGii, use a space instead.  This will work with bothì
  673. ZCPR33 and BGii and will have no effect in ZCPR30.  I am using the slash inì
  674. the examples because a space is hard to see in print.  When ERAPROMPT runsì
  675. and the user is prompted for the name, the directory listing will already beì
  676. on the screen.
  677.  
  678.      Whenever console input is requested by any program, one must keep inì
  679. mind the possibility that ZEX will be running and consider the question ofì
  680. whether the input request should be satisfied from the ZEX script or byì
  681. direct user input.  ARUNZ is configured, in the absence of a specificì
  682. directive to the contrary, to turn ZEX input redirection off during ARUNZì
  683. prompted input.  Thus, even if ZEX is running at the time ARUNZ is invoked,ì
  684. the user input parameters will request live user input.
  685.  
  686.      If you do want ZEX to be able to provide the response to ARUNZ promptedì
  687. input automatically from the ZEX script, then you must include the ARUNZì
  688. directive $I ('I' for input redirection) before the $" or $' parameter.  Theì
  689. $I directive is effective only for the next user input operation.  Afterì
  690. each prompted user input operation, the default for ZEX input redirection isì
  691. turned off.  The $I directive need not immediately precede the $" or $' butì
  692. there must be a separate $I for each input requested.
  693.  
  694.  
  695. Register and Memory Parameters
  696.  
  697.      Two parameters are provided for referencing values of the ZCPR3 userì
  698. registers and the contents of any memory location in the system.
  699.  
  700.      By Richard Conn's original specification, there were ten user registersì
  701. numbered from 0 to 9.  However, the block of memory in which those tenì
  702. registers fall is actually 32 bytes long.  Conn designated the last 16 bytesì
  703. of this block as 'user definable registers', but he and others later usedì
  704. them in programs such as Term3 and Z-Msg.  As a result, one has to be veryì
  705. careful in making use of them.  The last 6 bytes of the first half of theì
  706. block were defined as 'reserved bytes'.  Various uses have been made of themì
  707. as well.
  708.  
  709.      The ARUNZ parameter 'R' can reference any of the first 16 bytes usingì
  710. the form $Rn, where 'n' is a hexadecimal digit.  The decimal digitsì
  711. reference the true user registers, and the additional digits 'A' through 'F'ì
  712. reference the reserved bytes.  In the current version of ARUNZ, the value isì
  713. returned as a two character hexadecimal value.  However, I would like toì
  714. provide in the future a way to return the value in either decimal orì
  715. hexadecimal form.  A complication with the decimal form is the need toì
  716. indicate the format: one character, two characters with leading zeros, threeì
  717. characters with leading zeros, or the number of characters required for theì
  718. particular value with no leading zeros.
  719.  
  720.      One of the uses I envisioned for this parameter, though I have neverì
  721. actually used it this way, is for automatic sequential numbering of files. ì
  722. Thus a script might include the string "copy $:1$r3.$.1=$1;reg p3".  Thisì
  723. would copy the working file given by token 1 to a new file with the hexì
  724. value of register 3 appended to the file name.  For a file name of PROG.Z80ì
  725. this might be PROG03.Z80.  Then the value of register 3 would be incrementedì
  726. so that the next file name in sequence (PROG04.Z80) would be used the nextì
  727. time the alias was invoked.
  728.  
  729.      The parameter 'M' is used in the form $Mnnnn, where 'nnnn' is aì
  730. precisely four-digit hexadecimal address value.  The parameter returns theì
  731. two character hexadecimal value of the byte at the specified memory address. ì
  732. I use this on my RAS to determine if the system is running in local mode. ì
  733. The BDOS page at address 0007H has a different value when BYE is running. ì
  734. There might be a script of the form
  735.  
  736.     if eq $m0007 c6;....;else;echo not allowed in remote mode;fi
  737.  
  738. The commands represented by the ellipsis "...." will run only if in localì
  739. mode (BDOS apparently located at page C6H).
  740.  
  741.  
  742. ARUNZ Directives
  743.  
  744.      There are presently two ARUNZ directives.  We already discussed one ofì
  745. them, 'I', under the user input parameters.  The other one is 'Z'.
  746.  
  747.      Ordinarily, once ARUNZ has interpreted the alias script and evaluatedì
  748. the parameters, it appends to the resulting command line any commands in theì
  749. multiple command line buffer that have not already been executed.  This isì
  750. usually what one wants.  There is one possible exception.
  751.  
  752.      As I discussed in issues #27 and #28 of The Computer Journal, oneì
  753. sometimes wants an alias to invoke itself or other aliases recursively. ì
  754. This can sometimes lead to problems with the build up of unwanted pendingì
  755. commands that eventually causes the command line to overflow the bufferì
  756. space allowed for it.  In such a case one might want only the currentì
  757. expanded script command line to be placed in the MCL, with any pendingì
  758. commands dropped.  A $Z directive anywhere in the script will cause ARUNZ toì
  759. do this.  Note that the directive is not a toggle; multiple uses has theì
  760. same effect as a singe use.  Remember, however, that Dreas Nielsen's aliasì
  761. recursion technique, described in issue #28 and in examples below, isì
  762. generally preferable to the technique using $Z.
  763.  
  764.  
  765.                        Applications for ARUNZ Aliases
  766.  
  767.      In this section I will use a number of sample scripts to illustrateì
  768. various ways in which one can make use of the power of ARUNZ aliases.  I'mì
  769. sure there are many I have not thought of, and I invite you to send me yourì
  770. suggestions and examples.  In all cases I will be assuming that ARUNZ is theì
  771. extended command processor (typically renamed to CMDRUN.COM).
  772.  
  773.      In general, one can identify the following classes of aliasì
  774. applications:
  775.  
  776.     (1) providing synonyms for commands
  777.     (2) trapping and/or correcting command errors
  778.     (3) automating complex operations into single commands
  779.  
  780. Within the last category fall two special subclasses:
  781.  
  782.     (a) performing 'get, poke, & go' operations
  783.     (b) providing special functions like recursion and repetition
  784.  
  785.  
  786. Command Synonyms
  787.  
  788.      The most basic use of aliases is to provide alternative names for
  789. commands.  Here are some examples from my personal ALIAS.CMD file.
  790.  
  791.      For displaying the directory of a library file, I now use the programì
  792. LLF.  However, after years of using LDIR, both before LLF was released andì
  793. still on most remote access systems, I prefer to use that name and haveì
  794. renamed LLF.COM to LDIR.COM.  Sometimes, however, I forget or want to beì
  795. sure I am running LLF and enter the command LLF explicitly.  Then I am savedì
  796. by the alias line
  797.  
  798.     LLF ldir $*
  799.  
  800. Similarly, I have recently begun to use LBREXT instead of LGET.  LGET isì
  801. easier to type, and I am used to it, so I have the alias
  802.  
  803.     LGET lbrext $*
  804.  
  805. LBREXT is so new that I did not want to rename it to LGET, since I might tooì
  806. easily forget which program the disk file really is.  I know I never haveì
  807. the old LDIR.COM around any more.  In both of these examples, the aliasì
  808. simply substitutes a different verb in the command line; the tail is leftì
  809. unchanged.
  810.  
  811.      Before the advent of ZCPR33, when path searching always included theì
  812. current directory, I would speed up the disk searching in these cases byì
  813. including an explicit directory reference with the script.  Thus the twoì
  814. commands above might be
  815.  
  816.     LLF   a0:ldir $*
  817.     LGET  a0:lbrext $*
  818.  
  819. This way the command processor would go straight to A0 no matter where I wasì
  820. logged in at the time.
  821.  
  822.      With ZCPR33 one can bypass the path search for commands that one knowsì
  823. are in ALIAS.CMD by entering the command with a leading space or slashì
  824. (assuming the usual configuration of ZCPR33).  Sometimes I might try toì
  825. outfox the system and, thinking LBREXT is the alias name, enter the commandì
  826. as '/LBREXT ...'.  So that this will work, I extend the alias lines to
  827.  
  828.     LLF=LDIR     a0:ldir $*
  829.     LGET=LBREXT  a0:lbrext $*
  830.  
  831. The command is an alias for itself!!  Odd, but useful.  It is a good idea ifì
  832. you do this, however, to be absolutely sure to include an explicit directoryì
  833. prefix before the command name in the script.  If you don't, the followingì
  834. situation can arise.  Suppose the alias line reads
  835.  
  836.     TEST test $*
  837.  
  838. but for some reason TEST.COM is not on the disk (or at least not on theì
  839. search path).  Now you enter the command TEST.  The command cannot be foundì
  840. as a COM file, so the command processor sends it to ARUNZ.  ARUNZ proceedsì
  841. to regenerate the same command, which again cannot be found, and so on untilì
  842. you press the little red button or pull the plug.  Not always to completeì
  843. catastrophe, but definitely a nuisance.  With ZCPR33, if the command has anì
  844. explicit directory prefix, control is passed directly to the error handlerì
  845. if the COM file cannot be found in the specified directory.  It figures thatì
  846. if you go to the trouble of specifying the directory, you must mean to lookì
  847. there only.
  848.  
  849.      Another use for synonyms is to allow a short-form entry of commands. ì
  850. Here are two examples:
  851.  
  852.     SLR.180  asm:slr180 $*
  853.     ED.IT    sys:edit $*
  854.  
  855.      Synonyms are especially helpful on a remote access system or on anyì
  856. system that will be used by people who are not familiar with it or expert inì
  857. its use.  Consider, for example, the task of finding out if a certain fileì
  858. is somewhere on the system and where.  Some systems use FINDF, the originalì
  859. ZCPR3 program for this purpose; others use one of the standard CP/M programsì
  860. (WIS or WHEREIS); and others have begun to use the new, enhanced ZSIGì
  861. program called FF.  This can be very confusing to new users or to users whoì
  862. call many different systems.  The solution is to provide aliases for all theì
  863. alternatives.  Suppose FF is the real program in use.  Then the followingì
  864. line in ALIAS.CMD will allow all the forms to be used equally:
  865.  
  866.     FINDF=WIS=WHEREIS ff $*
  867.  
  868. In fact, while I am at it, I usually throw in a few other forms that someoneì
  869. might try and that are sufficiently unambiguous that one can guess with someì
  870. confidence that this is the function the user intended:
  871.  
  872.     FIND.FILE=FILE.FIND=WIS=WHERE.IS=FF a0:ff $*
  873.  
  874. Note that this single alias, which occupies only 46 bytes in ALIAS.CMDì
  875. (including the CRLF at the end of the line), responds to 8 commonly usedì
  876. commands for finding files on a system.  Thus the cost is a mere 6 bytes perì
  877. command!!
  878.  
  879.  
  880. Trapping and Correcting Command Errors
  881.  
  882.      Aliases can be used to trap commands that would be errors and eitherì
  883. convert them into equivalent valid commands or provide some warning messageì
  884. to the user.
  885.  
  886.      It is generally not desirable to have a very long search path, becauseì
  887. every time a command is entered erroneously, the entire path has to beì
  888. searched before the extended command processor will be brought into play. ì
  889. On my SB180 with its RAM disk, I sometimes want the path to include onlyì
  890. M0:, the RAM disk directory.  The RAM disk, of course, cannot contain all ofì
  891. the COM files I use.  For COM files that reside on the floppy disk, I canì
  892. include an alias.
  893.  
  894.      For example, MEX.COM and all its associated files take up a lot of diskì
  895. space, and I keep them in a directory called MEX on my floppy drive B.  Theì
  896. ALIAS.CMD file can have the line
  897.  
  898.     MEX mex:mex $*
  899.  
  900. Without this alias I would have to remember to enter MEX:MEX manually.  If Iì
  901. forgot, I would get the error handler and then have to edit the line toì
  902. include the MEX: prefix.  The 16-byte entry above in the ALIAS.CMD fileì
  903. saves me all this trouble.
  904.  
  905.      Every computer user probably has some commands whose names heì
  906. habitually mistypes (switching 'g' and 'q' for example or reversing twoì
  907. letters).  My fingers seem to prefer 'CRUNHC' to 'CRUNCH', so I have theì
  908. following alias line:
  909.  
  910.     CR.UNHC crunch $*
  911.  
  912. Note that while I am at it, I allow the shorter form CR as well.  My fingersì
  913. like that even better.
  914.  
  915.      On a remote access system there are many situations where correctingì
  916. common mistakes can be handy.  Richard Jacobson (Mr. Lillipute, sysop of theì
  917. RAS that now serves TCJ subscribers) calls my Z-Node quite often.  Either heì
  918. has a Wyse keyboard with very bad bounce (as he claims) or he is a lousyì
  919. typist (and refuses to admit it).  When he wants to display a directory, hisì
  920. command is more likely to come out DDIR or DIRR than it is to come outì
  921. correctly as DIR.  So I added those two forms to my existing alias whichì
  922. allowed XD and XDIR (and /DIR); it now reads:
  923.  
  924.     XD.IR=DDIR=DIR.R a0:dir $*
  925.  
  926. Compensating for Richard's keyboard stutter takes up only seven extra bytesì
  927. on my disk, not a very big sacrifice to make for a friend!
  928.  
  929.      Another example, one that is more than just a synonym for a mistypedì
  930. command, is an alias that comes into play when a command becomesì
  931. unavailable, perhaps because of a change in security level.  The RCP may,ì
  932. for example, have an ERA command that is only available when the wheel byteì
  933. is set.  When the wheel byte is off, ZCPR33 will ignore the command in theì
  934. RCP and forward an ERA command to the extended command processor or errorì
  935. handler (assuming there is no ERA.COM).  You might want to trap the errorì
  936. before the error handler gets it using an alias such as
  937.  
  938.     ERA echo e%>rasing of files not allowed
  939.  
  940. When the wheel byte is set, the ERA command will execute normally (unlessì
  941. entered with a leading space or slash).  When the wheel byte is off, theì
  942. user will get the message "Erasing of files not allowed", which, unlike theì
  943. invocation of an error handler, makes the situation perfectly clear.
  944.  
  945.      It is obviously very hard for users to remember the DU forms forì
  946. directories on a remote system, and that is one reason why named directoriesì
  947. are provided.  But even names are not always easy to remember precisely.ì
  948. Aliases can help by providing alternative names for logging intoì
  949. directories, provided ZCPR33 has been assembled with the BADDUECP optionì
  950. enabled so that invalid directory-change references are passed on to theì
  951. extended command processor.
  952.  
  953.      Suppose you have a directory called Z3SHELLS.  One might easily forgetì
  954. the exact name and think that it is Z3SHELL or SHELLS or SHELL.  Theì
  955. following line in ALIAS.CMD
  956.  
  957.     Z3SHELL:=SHELL:=SHELLS: z3shells:
  958.  
  959. would take care of all of these possibilities.  Note, however, that it willì
  960. not help a reference like "DIR SHELL:".  [If you wanted this to be accepted,ì
  961. you would have to go to considerable trouble.  You might be able to go intoì
  962. the NDR (named directory register) and tack onto the end an entry for aì
  963. directory named SHELL associated with the same drive and user as Z3SHELLS. ì
  964. All existing NDR editors will not allow a DU area to have more than oneì
  965. name, so you would have to use a debugger or patcher.  If anyone tries this,ì
  966. let me know if it works.]
  967.  
  968.      I occasionally slip up and omit the colon on the end of a directoryì
  969. change command (and users on my Z-Node do it surprisingly often).  It isì
  970. very easy for ARUNZ to pick this up as well and add the colon for you.  Justì
  971. include the following alias line:
  972.  
  973.     Z3SHELL=Z3SHELLS=SHELL=SHELLS z3shells:
  974.  
  975. All of these aliases can be combined into the single script:
  976.  
  977.     Z3SHELL.:=Z3SHELLS=SHELL.:=SHELL.S: z3shells:
  978.  
  979. Seven forms are covered by an entry of only 47 bytes, a cost of less than 7ì
  980. bytes each.  Note that the name element Z3SHELLS, unlike the other threeì
  981. name elements, does not allow an optional colon.  If it were included andì
  982. for some reason there were no directory with the name Z3SHELLS, you couldì
  983. get into an infinite loop.
  984.  
  985.      On my Z-Node I provide a complete set of aliases for all possibleì
  986. directories so that any legal directory can be entered with or withoutì
  987. colons and using either the DIR or the DU form.  Thus, if Z3SHELLS is B4,ì
  988. the script above would be:
  989.  
  990.     Z3SHELL.:=Z3SHELLS=SHELL.:=SHELL.S:=B4.: z3shells:
  991.  
  992.      Before ZCPR33 came along and provided this service itself, I wouldì
  993. allow callers to use the DU form to log into unpassworded named directoriesì
  994. beyond the max-drive/max-user limits by including aliases of the above form. ì
  995. If the maximum user area were 3 in the above example, the commands "B4:" andì
  996. "B4" would still have worked (even under ZCPR30) because ARUNZ mapped themì
  997. into a DIR form of reference.  Although this is no longer necessary withì
  998. ZCPR33, a complete alias line like the one above covers all bases. The userì
  999. can even enter any of the commands with a leading space or slash and theyì
  1000. will still work.
  1001.  
  1002.      Finally, I provide on the Z-Node a catch-all directory change alias toì
  1003. pick up directory change commands that don't even come close to somethingì
  1004. legal.  At the end of ALIAS.CMD (i.e., after all the other directory-changeì
  1005. aliases described above, so that they get the first shot at matching), Iì
  1006. include the line
  1007.  
  1008.     ?:=??:=???:=????:=?????:=??????:=???????:=????????: echo
  1009.       d%>irectory %<$0%> is not an allowed directory.  %<t%>he^m^j
  1010.       valid directories are:;pwd
  1011.  
  1012. Thus when the user enters the command "BADDIR:", he get the PWD display ofì
  1013. the system's allowed directories prefixed by the message
  1014.  
  1015.     Directory BADDIR: is not an allowed directory.  The
  1016.     valid directories are:
  1017.  
  1018. [Note the use of Z33RCP's advanced ECHO command with case shifting ('%< toì
  1019. switch to upper case and '%>' to switch to lower case) and control characterì
  1020. inclusion (caret followed by the character).]
  1021.  
  1022.  
  1023. Automating Complexity
  1024.  
  1025.      Complexity is a relative term, and in my old age (also relative) Iì
  1026. enjoy the luxury of letting my computer perform as much labor on my behalfì
  1027. as it possibly can.  We already saw how ARUNZ aliases can provide shortì
  1028. forms for commands (CR for CRUNCH).  It can also allow one to completelyì
  1029. omit commands.
  1030.  
  1031.      At work I have been maintaining a phone directory in a file calledì
  1032. PHONE.DIR.  I got tired of invoking my PMATE text editor using the commandì
  1033. "EDIT A0:PHONE.DIR", so I added the following line to ALIAS.CMD:
  1034.  
  1035.     PHONE edit a0:phone.dir
  1036.  
  1037. Now I just type PHONE and, bingo, I'm in the editor ready to add a new name. ì
  1038. Similarly, I used to look up numbers for people using JETFIND as follows:
  1039.  
  1040.     JF -gi smith|jones a0:phone.dir
  1041.  
  1042. This would give me, from any directory, a paginated listing of lines inì
  1043. PHONE.DIR containing either "smith" or "jones" (ignoring case).  My poorì
  1044. tired fingers ache just thinking about all that typing.  Now I have theì
  1045. alias line
  1046.  
  1047.     #=CALL=NUM.BER jf -gi $1 a0:phone.dir
  1048.  
  1049. Now a simple " # smith" puts Smith's number up on my clean CRT screen in aì
  1050. jiffy.
  1051.  
  1052.      Here is another frequent command that causes severe finger cramps.  Youì
  1053. want to find all the files in the current directory that have a typeì
  1054. starting with 'D'.  You have to type "XD *.D*".  Wouldn't it be nice to haveì
  1055. a directory program that automatically wildcarded the file specification. ì
  1056. While I was fixing up FINDF to make my new FF, I built that feature into theì
  1057. code.  I've been too busy or too lazy to do the same for XD, so instead Iì
  1058. added the alias line
  1059.  
  1060.     D xd $d1$u1:$:1*.$.1* $-1
  1061.  
  1062. This is a little hard to decipher at a glance because of all the dots andì
  1063. colons and asterisks.  But here's how it works.  Suppose we are in B4: andì
  1064. enter "D .D /AA" (the option /AA means to include SYS and DIR type files). ì
  1065. The parameters in the alias have the following values:
  1066.  
  1067.     $D1 = "B"    $U1 = "4"        current drive and user, since
  1068.                     none given explicitly
  1069.  
  1070.     $:1 = ""            no file name given
  1071.  
  1072.     $.1 = "D"            file type in first parameter
  1073.  
  1074.     $-1 = "/AA"            the tail less the first token ".D"
  1075.  
  1076. The command is thus translated by ARUNZ into
  1077.  
  1078.     XD B4:*.D* /AA
  1079.  
  1080.      Sometimes it can be nice to allow a command that takes a number ofì
  1081. alternative options to run with only the option entered on the command line. ì
  1082. I have a read file for MEX that provides automated, menu-based operation onì
  1083. PC-PURSUIT.  I could invoke it as "MEX PCP".  Instead, I have the alias
  1084.  
  1085.     PCP  mex pcp
  1086.  
  1087. I also do this with the KMD file transfer commands on my Z-Node, where Iì
  1088. define the following aliases:
  1089.  
  1090.     S    kmd s $*
  1091.     SK    kmd sk $*
  1092.     SB    kmd sb $*
  1093.     SBK    kmd sbk $*
  1094.     SP    kmd sp $*
  1095.     SPK    kmd spk $*
  1096.     R    kmd r $*
  1097.     RP    kmd rp $*
  1098.     RB    kmd rb
  1099.     RP    kmd rp $*
  1100.     L    kmd l $*
  1101.     LK    kmd lk $*
  1102.  
  1103. This way the user can skip typing "KMD".  Actually, these aliases eachì
  1104. contain numerous other synonyms as well.  The 'S' alias, for example,ì
  1105. includes "SEND", "DOWN", and "DOWNLOAD" as well.  The cost in terms of diskì
  1106. space to add all these aliases is so small that I let my enthusiasm andì
  1107. imagination run wild.  Note, however, that with the above aliases defined,ì
  1108. the RCP should not have the 'R' (reset) and 'SP' (space) commands, sinceì
  1109. they will take precedence over the alias.  I changed the names of theseì
  1110. commands to 'RES' and 'SPAC'.  The remote user has no reason to use themì
  1111. anyway.
  1112.  
  1113.      There are, of course, many really complicated sequences of commandsì
  1114. (editing, assembling, and linking files, for example) that can very nicelyì
  1115. be performed by aliases.  Those are fairly obvious, and I have describedì
  1116. quite a few in previous columns.  I won't give any more examples here, but Iì
  1117. will describe two special applications where ARUNZ aliases cut down aì
  1118. complex process to simple proportions.  The first is automation of the get¡
  1119. poke-go technique pioneered by Bruce Morgen.
  1120.  
  1121.  
  1122. Automated GET-POKE-GO
  1123.  
  1124.      Here the alias does more than just save typing -- it remembers theì
  1125. addresses that have to be poked, something you probably can't do.  I willì
  1126. illustrate it with an intriguing example that is sort of recursive.
  1127.  
  1128.      Suppose ARUNZ is the extended command processor, has been renamedì
  1129. CMDRUN.COM, and is set to get its ALIAS.CMD file from the root directory. ì
  1130. Next, suppose you also want to be able to invoke it manually and have it, inì
  1131. that case, look for its ALIAS.CMD file along the entire path, including theì
  1132. current directory.  Suppose, furthermore, that CMDRUN.COM is a type-3ì
  1133. program that loads and runs at address 8000H.
  1134.  
  1135.      By inspecting CMDRUN.COM, we find that we have to poke a 0 at offsetì
  1136. 1CH (address 801CH) to turn off the ROOT configuration option and an FFH atì
  1137. offset 24H (address 8024H) to turn on the SCANCUR option.  If we are to makeì
  1138. manual invocations using the alias name 'RUN', we can put the following lineì
  1139. in the ALIAS.CMD file in the root directory, where the unpoked CMDRUN.COMì
  1140. will find it:
  1141.  
  1142.     RUN get 8000 cmdrun.com;poke 801c 0;poke 8024 ff;jump 8000 $*
  1143.  
  1144. I particularly chose this example because it illustrates the slightly moreì
  1145. advanced version of GET-POKE-GO called GET-POKE-JUMP.  One word of caution. ì
  1146. This technique will only work under ZCPR33.  BGii version 1.13 is very closeì
  1147. to ZCPR33, but it still handles the JUMP command the way ZCPR30 did, and itì
  1148. cannot use JUMP when a command tail is processed.
  1149.  
  1150.      I will now describe two very special operations that can be performedì
  1151. very nicely with ARUNZ aliases: recursion and repetition.
  1152.  
  1153.  
  1154. Special Recursion Aliases
  1155.  
  1156.      The following pair of aliases (more or less) that implement Dreasì
  1157. Nielsen's recursion technique were described in my column in issue 28.  Theyì
  1158. allow one to execute a single command recursively.  With each cycle the userì
  1159. will be asked if he wants to continue.  So long as the answer is yes, theì
  1160. command will be executed repeatedly.  Upon a negative reply, the recursiveì
  1161. sequence will terminate, and any pending commands will execute.
  1162.  
  1163.      The alias that the user invokes can be called "REC.URSE" so that it canì
  1164. be invoked with a simple 'REC'.  It contains the following sequence ofì
  1165. commands:
  1166.  
  1167.     if nu $1
  1168.       echo;echo %<  s%>yntax: %<$0 cmdname [parameters]^j
  1169.     else
  1170.       /recurse2 $*
  1171.     fi
  1172.  
  1173. If invoked without at least a command name, this alias echoes a syntaxì
  1174. message to the screen.  Otherwise it invokes the second alias RECURSE2.  Theì
  1175. leading slash speeds things up by signaling the ZCPR33 command processorì
  1176. that it should go directly to the extended command processor.  If you areì
  1177. using BackGrounder-ii (version 1.13), the slash should be replaced by aì
  1178. space (the alias will then work with BGii or Z33).  If you are using ZCPR30,ì
  1179. don't use either; a space won't do you any good, and a slash will cause theì
  1180. command to fail.
  1181.  
  1182.      The alias that does the real recursion (RECURSE2) has the followingì
  1183. sequence of commands:
  1184.  
  1185.     fi
  1186.     $*
  1187.     if in r%>un %<"$*" %>again?
  1188.       /$0 $*
  1189.  
  1190. If the user answers the 'run again' query affirmatively, RECURSE2 will beì
  1191. invoked again.  By using '$0' instead of 'RECURSE2' the script will workì
  1192. even if we later change its name.
  1193.  
  1194.  
  1195. Special REPEAT Alias
  1196.  
  1197.      Here is a simple special alias that will allow a command that takes aì
  1198. single argument (token) to be repeated over a whole list of argumentsì
  1199. separated by spaces (not commas).  The name of the alias is "REP.EAT" soì
  1200. that it can be invoked with a brief 'REP'.  The script contains theì
  1201. following commands:
  1202.  
  1203.     $zxif
  1204.     if ~nu $2
  1205.       echo $1 $2
  1206.       $1 $2
  1207.     fi
  1208.     if ~nu $3
  1209.       /$0 $1 $-2
  1210.     fi
  1211.  
  1212. The '$z' in the first line declares the alias to be in recursive mode (anyì
  1213. pending commands in the multiple command line buffer are dropped when thisì
  1214. alias executes), and 'xif' clears the flow state.  Invoked as
  1215.  
  1216.     REPEAT CMDNAME ARG1 ARG2 ARG3
  1217.  
  1218. for example, interpretation of the script the first time through results inì
  1219. the following commands:
  1220.  
  1221.     xif
  1222.     if ~nu arg1
  1223.       echo cmdname arg1
  1224.       cmdname arg1
  1225.     fi
  1226.     if ~nu arg2
  1227.       /repeat cmdname arg2 arg3
  1228.     fi
  1229.  
  1230. The command line generated ("CMDNAME ARG1") is first echoed to the screen soì
  1231. the user knows what is going on, and then it is run.  Since there is aì
  1232. second argument, the alias is reinvoked as "REPEAT CMDNAME ARG2 ARG3".  Noteì
  1233. that the first argument has been stripped away.  After "CMDNAME ARG2" hasì
  1234. also been run and stripped from the command, the interpreted command stringì
  1235. will be:
  1236.  
  1237.     xif
  1238.     if ~nu arg3
  1239.       echo cmdname arg3
  1240.       cmdname arg3
  1241.     fi
  1242.     if ~nu
  1243.      /repeat cmdname
  1244.     fi
  1245.  
  1246. This time the null test in the second IF clause will fail, and the cycle ofì
  1247. commands will come to an end.
  1248.  
  1249.      This form of the REPEAT alias suffers from the problems Dreas Nielsenì
  1250. pointed out (it wipes out any commands following it on the original commandì
  1251. line).  A rigorous version can be made (adapting Dreas's technique) byì
  1252. making two aliases as follows:
  1253.  
  1254.    REP.EAT
  1255.     if nu $2
  1256.       echo;echo %<  s%>yntax: %<$0 aliasname arg1 arg2 ...^j
  1257.     else
  1258.       /repeat2 $*
  1259.     fi
  1260.  
  1261.    REPEAT2
  1262.     fi
  1263.     $1 $2
  1264.     if ~nu $3
  1265.       /$0 $1 $-2
  1266.  
  1267. If there is not at least one argument after the name of the command, aì
  1268. syntax message is given.  Otherwise a series of operations using REPEAT2ì
  1269. begins in which the command is executed on the first argument, and thenì
  1270. REPEAT2 is reinvoked with the same command name but with one argumentì
  1271. stripped from the list of arguments.  Note that the parameter $-2 is used. ì
  1272. The first parameter (the command verb) is given explicitly as $1.  "$-2"ì
  1273. strips away the verb and the argument that has already been processed.  Theì
  1274. expression "$1 $-2" allows one to strip out the second token.  Similarly,ì
  1275. "$1 $2 $-3" would strip out the third token.  "$1 $-3" would strip out theì
  1276. second and third tokens, leaving the first one intact and moving theì
  1277. remaining tokens down by two.
  1278.  
  1279.                              Configuring ARUNZ
  1280.  
  1281.      There are several configuration options that allow the user to tailorì
  1282. the way ARUNZ operates.  The COM file is designed to make it easy to patchì
  1283. in new values for most of the options using a program like ZPATCH.
  1284.  
  1285.  
  1286. Execution Address for ARUNZ
  1287.  
  1288.      ARUNZ is written as a type-3 ZCPR33 program.  In other words, it canì
  1289. automatically be loaded to and execute at an address other than 100H.  Inì
  1290. this way, its invocation as an extended command processor can leave most ofì
  1291. the TPA (transient program area) unaffected by its operation.  In the LBRì
  1292. file posted on RASs there are generally two versions of ARUNZ, one designedì
  1293. to run at 100H (and usable in ZCPR30 systems) and one designed to run atì
  1294. 8000H.  Sometimes there are also REL files that the user can link with theì
  1295. ZCPR libraries to run at any desired address.
  1296.  
  1297.  
  1298. Display Control
  1299.  
  1300.      There are two bytes just after the standard ZCPR3 header at offset 0DHì
  1301. in the COM file (just before the string "REG") that control the display ofì
  1302. messages to the user during operation of ARUNZ.  The first byte applies whenì
  1303. ARUNZ has been invoked under ZCPR33 as an extended command processor; theì
  1304. second applies to manual invocation (or any use under ZCPR30).
  1305.  
  1306.      Each bit of these two bytes could control one display feature.  Atì
  1307. present, only six of the bits are used.  Setting a bit causes the messageì
  1308. associated with the bit to be displayed; resetting the bit supresses theì
  1309. display of the corresponding message.
  1310.  
  1311.      The least significant bit (bit 0) affects the program signon message. ì
  1312. The usual setting is 'off' for ECP invocations and 'on' for manualì
  1313. invocations.  Bit 1 affects the display of a message of the form 
  1314.  
  1315.     Running alias "XXX"
  1316.  
  1317. This message is normally displayed only for manual invocations of ARUNZ.
  1318.  
  1319.      Bit 2 controls the display of the "ALIAS.CMD file not found" message. ì
  1320. This message should generally be enabled, since it will not appear unlessì
  1321. something has unexpectedly gone wrong, and you might as well know about it.
  1322.  
  1323.      Bit 3 controls the display of a message of the form
  1324.  
  1325.     Alias "XXX" not found
  1326.  
  1327. This message is normally turned on for manual invocations only.  When theì
  1328. alias is not found by ARUNZ operating as a ZCPR33 ECP, control is turnedì
  1329. over to the error handler, and there is no need for such a message.  Theì
  1330. message can alternatively be generated, in whatever form the user desires,ì
  1331. using a default alias as described earlier.  In that case, however, theì
  1332. message will appear for ECP as well as manual invocations.
  1333.  
  1334.      Bits 4 and 5 apply only when ARUNZ has been invoked as an extendedì
  1335. command processor, and they were included as a debugging aid while I wasì
  1336. first developing ARUNZ.  Both are normally turned off.  If bit 4 is set,ì
  1337. ARUNZ will display the message "extended command processor error" if itì
  1338. could not process the alias during an ECP invocation.  Bit 5 controls aì
  1339. message of the form "shell invocation error".  It is possible (though veryì
  1340. tricky and not recommended) for an alias to serve as a shell.  If ARUNZì
  1341. fails to find an alias when invoked as a shell processor, then this messageì
  1342. will be displayed if bit 5 is set.
  1343.  
  1344.  
  1345. Locating the ALIAS.CMD File
  1346.  
  1347.      There are several possibilities for how ARUNZ is to go about locatingì
  1348. the ALIAS.CMD file.  There are four configuration blocks near the beginningì
  1349. of the ARUNZ.COM file; they are marked by text strings "PATH", "ROOT",ì
  1350. "SCANCUR", and "DU".  If the byte after "PATH" is a zero, then ARUNZ willì
  1351. look in the specific drive and user areas indicated by the two bytesì
  1352. following the string "DU".  The first byte is for the drive and has a valueì
  1353. of 0 for drive A, 1 for B, and so on.  The second byte has the user numberì
  1354. (00H to 1FH).
  1355.  
  1356.      If the byte after the string "PATH" is not zero, then some form of pathì
  1357. search will be performed depending on the settings of the bytes after theì
  1358. strings "ROOT" and "SCANCUR".  If the byte after "ROOT" is zero, then theì
  1359. entire ZCPR3 path will be searched.  If the byte after "SCANCUR" is nonzero,ì
  1360. then the currently logged drive and user will be included at the beginningì
  1361. of the path.  If the byte after "ROOT" is nonzero, then only the rootì
  1362. directory (last directory specified in the path) will be searched, and theì
  1363. byte after "SCANCUR" is ignored.
  1364.  
  1365.      My general recommendation is to use either the root of the path or aì
  1366. specified DU, especially when ARUNZ is being used as the extended commandì
  1367. processor.  It can take a great deal of time to search the entire pathì
  1368. including the current directory.  With ARUNZ as the ECP this will be doneì
  1369. every time you make a typing mistake in the entry of a command name, and theì
  1370. extra disk accesses can get quite tedious and annoying.
  1371.  
  1372.  
  1373. Use Register for Path Control
  1374.  
  1375.      There is an alternative way to control the path searching options thatì
  1376. can give one the best of all possible worlds.  After the string "REG" oneì
  1377. can patch in a value of a user register, the value of which will be used toì
  1378. specify the path search options PATH, ROOT, and SCANCUR instead of the fixedì
  1379. configuration bytes described above.
  1380.  
  1381.      Any one of the full set of 32 ZCPR3 registers can be specified for thisì
  1382. function by patching in a value from 00H to 1FH.  If any other value isì
  1383. used, the fixed configuration bytes will be used.  If a valid register isì
  1384. specified, its contents are interpreted as follows:
  1385.  
  1386.     bit 0        PATH flag (0 = use fixed DU; 1 = use path)
  1387.     bit 1        ROOT flag (0 = use entire path; 1 = use root only)
  1388.     bit 2        SCANCUR flag (0 = use path only; 1 = include
  1389.                 current DU)
  1390.  
  1391. By changing the value stored in the specified register, one can change theì
  1392. way ARUNZ looks for the ALIAS.CMD file dynamically depending on theì
  1393. circumstances.
  1394.  
  1395.  
  1396.                             Plans for the Future
  1397.  
  1398.      I don't have much writing stamina left, but I would like to finish withì
  1399. a few comments about developments I would still like to see in ARUNZ.  A fewì
  1400. were mentioned in the main text above.  There is a need for some additionalì
  1401. parameters, such as register values in various decimal formats.  One alsoì
  1402. needs more flexible access to the directory specification part of a token. ì
  1403. The present parameters only allow extracting a DU reference, and they don'tì
  1404. allow any way to tell if an explicit directory is specified.  There shouldì
  1405. be a parameter that returns whatever DU or DIR string (including the colon)ì
  1406. is present.  If none is present, the parameter should return a null string.
  1407.  
  1408.      One of the things hampering the additional of more parameters is theì
  1409. arcane form they presently take.  I would like to find a much more rationalì
  1410. system (and if you have any suggestions, I would love to hear them).  I amì
  1411. thinking of something like $S for system file, followed by 'F', 'N', or 'T'ì
  1412. and then a number 0..3.  Thus $ST2 would read Systemfile-Type-2.  Commandì
  1413. line tokens might be $T followed by 'D', 'U', 'P', 'F', 'N', or 'T' and thenì
  1414. a digit 0..9 or 1..9.  The 'P' option (path) would be the DU or DIR prefix,ì
  1415. if any, including the colon.  Problem: what letter do I use for the namedì
  1416. directory or the path without the colon?  The logical choices 'N' and 'D'ì
  1417. are already used.  Maybe I have to go to four letters: $T for token,ì
  1418. followed by 'D' for directory part or 'F' for file part.  The 'D' could beì
  1419. followed by various letters (again, I am not sure what to use for all ofì
  1420. them) to indicate:
  1421.  
  1422.     1) the equivalent drive or default if none specified
  1423.     2) the equivalent drive or null string if none specified
  1424.     3) the same two possibilities for the user number
  1425.     4) the equivalent or given named directory (but what if the
  1426.        directory has no name)
  1427.     5) the whole directory prefix as given either including or not
  1428.        including the colon
  1429.  
  1430. Similarly, the 'F' option could be followed by a letter to indicate theì
  1431. whole filename, the name only, or the type only.  As you can see, it is notì
  1432. easy to identify all the things one might need and find a rational way toì
  1433. express them all.
  1434.  
  1435.      It would be nice to have prompted input where the user's input could beì
  1436. used in more than one place in the command line.  User input would have toì
  1437. be assigned to temporary parameters ($U1, $U2, and so on).  Perhaps thereì
  1438. should be the possibility of specifying default values for command lineì
  1439. tokens when they are not actually given on the command line (as in ZEX).  Itì
  1440. might also be useful to be able to pull apart a token that is a list ofì
  1441. items separated by commas.
  1442.  
  1443.      ARUNZ could use better error reporting for badly formed scripts.  Atì
  1444. present one just gets a message that there was an error in the script, butì
  1445. there is no indication of what or where the error was.  Ideally, theì
  1446. interpreted line should be echoed to the screen with a pointer to theì
  1447. offending symbol (NZEX has this).
  1448.  
  1449.      There should be an option to have ARUNZ vector control to the ZCPR3ì
  1450. error handler whenever it cannot resolve the alias or when there is a defectì
  1451. in the script.  At present, chaining to the error handler only occurs whenì
  1452. ARUNZ has been invoked as an ECP.
  1453.  
  1454.      An intriguing possibility is to allow alias name elements to be regularì
  1455. expressions in the Unix (or JetFind) sense.  Then one could give an aliasì
  1456. name like "[XS]DIR" to match either XDIR or SDIR.  Perhaps there could be aì
  1457. correspondence established between non-unique expressions and a parameterì
  1458. symbol in the script.  Then all my KMD aliases might be simpler:
  1459.  
  1460.     S[P]*[K]*  kmd s$x1$x2 $*
  1461.  
  1462. The name would read as follows: 'S' followed by zero or more occurrences ofì
  1463. 'P' followed by zero or more occurrences of 'K'.  The parameter $X1, forì
  1464. example, would be the first regular expression, i.e., the 'P' if present orì
  1465. null if not.  This is fun to think about, but I am not at all sure that itì
  1466. would really be worth the trouble to use or to code for.  Any comments.
  1467.  
  1468.      It would also be nice to provide Dreas Nielsen's RESOLVE facilityì
  1469. directly in ARUNZ aliases.  These would use the percent character ('%') as aì
  1470. lead-in.  Any symbol enclosed in percent signs would be interpreted as aì
  1471. shell variable name, and its value from the shell file would be substitutedì
  1472. for it in the command line.  The parameter '$%' would be used to enter aì
  1473. real percent character.
  1474.  
  1475.  
  1476.                                  Next Time
  1477.  
  1478.      As usual, I have written much more than planned but not covered all theì
  1479. subjects planned.  I really wanted to discuss shells in more detail,ì
  1480. particularly after the fiasco with the way WordStar 4 behaves by trying toì
  1481. be a shell when it should not be.  That will have to wait for next time, Iì
  1482. am afraid.  Also by next time I should be ready to at least begin theì
  1483. discussion of ZEX.
  1484.