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 / A-R / FOR-NXT2.LBR / FOR-NEXT.DOC < prev    next >
Text File  |  2000-06-30  |  3KB  |  66 lines

  1. FOR-NEXT.DOC                                                   June 5, 1987
  2.  
  3.     FOR-NXT2.LBR is the second release of FOR-NEXT.LBR.  It contains a 
  4. modified version of PERFORM in which a previous (severe) defect has been 
  5. corrected.  My apologies to everybody who attempted to use this as 
  6. advertised and experienced some frustration.  I inadvertently omitted the 
  7. two lines of code necessary to clear the Console Status Flag, but this had 
  8. no effect on my system because of "improvements" made to my customized 
  9. ZCPR3.  Thanks to Michael Broschat for having the persistence to convince 
  10. me that something was indeed wrong with PERFORM.
  11.  
  12.     Having been reminded in this embarassing way of the changes I've made 
  13. to my ZCPR3 code, and the original reason for it, I realize that probably 
  14. very few other people make use of SHSET to install customized shells.  
  15. Included in this distribution, therefore, is a tiny little utility, 
  16. CLRCST, which will make it easier without having to modify your ZCPR3 
  17. code.  See CLRCST.HLP for more details.
  18.  
  19.      The three files FOR.COM, NEXT.COM, and PERFORM.COM provide the ability 
  20. to perform a single command or set of commands repeatedly, for a specified 
  21. list of arguments.  The actions of these programs are:
  22.  
  23. FOR <args>  -  Establishes the list of arguments to be used.  These may be:
  24.  
  25.      o    Filenames -- wildcards can be expanded or not, as you choose.
  26.           Filenames matching several different ambiguous specifications can
  27.           be collected in one list.  If an explicit directory reference
  28.           precedes an ambiguous name, all expansions will also include the
  29.           directory specification. 
  30.  
  31.      o    Arbitrary strings -- these may include spaces.
  32.  
  33.      o    All named directories.
  34.  
  35.      o    Numbers -- all integers up to a specified number will be written
  36.           into the list.  The limit may be specified directly or one of
  37.           ZCPR3's numeric registers may be used. 
  38.  
  39.  
  40. NEXT <var>  -  Puts the next argument from the list into the specified
  41.      system (shell) variable
  42.  
  43.  
  44. PERFORM <cmd_line>  -  Executes the specified command line once for
  45.      every argument in the list, substituting the current argument as
  46.      directed. 
  47.  
  48.  
  49.      Complete descriptions, including invokation syntax and example 
  50. applications, are in the ZCPR3-compatible help file FOR-NEXT.HLP.
  51.  
  52.  
  53. --------------------------------------------------------------------------
  54.  
  55.        Program       Release Date       Version
  56.       ---------     --------------     ---------
  57.        FOR.COM         5/26/87           1.0     (1st release)
  58.        NEXT.COM        5/26/87           1.1     (1st release)
  59.        PERFORM.COM     6/5/87            1.1     (2nd release)
  60.        CLRCST.COM      6/5/87            1.0     (1st release)
  61.  
  62.  
  63. Dreas Nielsen
  64. 16713 SE 12th St.
  65. Bellevue, WA   98008
  66.