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 / S-Z / ZEX-PPIP.NOT < prev    next >
Text File  |  2000-06-30  |  6KB  |  135 lines

  1. Note for Howard Goldstein from Rick Charnes regarding problems 
  2. with aborting PPIP with ^C entered at the keyboard while inside 
  3. ZEX403
  4.  
  5. Way too late, Nov. 18, 1988
  6.  
  7. Howard, this is the strangest thing I've ever seen.  I mean the 
  8. absolute strangest.
  9.  
  10. I finally traced down why I wasn't able to get a ^C entered at 
  11. the keyboard while in a ZEX file to abort PPIP.  Here it is: 
  12. because I run the program PROTECT.COM just previous to PPIP.  
  13. WHAT????, you say.  What the hell does that have to do with the 
  14. price of tea in China?  I know, I know.  My sentiments exactly.  
  15. I still can't figure it out, but it seems to be true.  Have 
  16. ZEX403 patched to XSUB OFF (my other settings are:
  17.  
  18. MSUP ON
  19. PSUP OFF
  20. IPSUP ON
  21. QUIET ON
  22.  
  23. if they are relevant) and try two tiny ZEX scripts, one 
  24. consisting of one line only:
  25.  
  26. PPIP A*.* BACKUP: /AE      ; (I assume any DIR: is OK)
  27.  
  28. and the other should be only two lines long:
  29.  
  30. PROTECT //
  31. PPIP A*.* BACKUP: /AE
  32.  
  33. That's all.  The PROTECT command can have any parameter; it can 
  34. be protecting some file(s) or not, but oddly enough even just 
  35. running its help message seems to be enough to get it to do its 
  36. weird stuff.
  37.  
  38. Now run both scripts on some directory where you have a couple of 
  39. files beginning with A, and try to abort the PPIP run.  You won't 
  40. believe your eyes.  The first script aborts PPIP fine and the 
  41. second one doesn't.
  42.  
  43. It's completely impossible but I have no other explanation.  The 
  44. simple running of PROTECT.COM seems to trigger something 
  45. somewhere that prevents ZEX from feeding the ^C to PPIP.  Well, 
  46. actually I don't know for sure that that's the correct 
  47. explanation; I may be assuming something.  I'll say only that the 
  48. running of PROTECT.COM seems to keep PPIP from being able to be 
  49. aborted while both are in a ZEX file.
  50.  
  51. And it only happens inside ZEX.  If you run the same two commands 
  52. on the command line, or from inside an alias, PPIP aborts fine 
  53. after PROTECT.COM is run.  And PROTECT.COM has also to be run 
  54. from inside the ZEX file for the abort to fail.  If you run 
  55. PROTECT simply from the command line, then run the ZEX file with 
  56. nothing in it but PPIP, then PPIP aborts fine!  One last 
  57. strangeness: if any (third) command -- even a resident! -- is 
  58. issued between PROTECT and PPIP in the ZEX file then PPIP _will_ 
  59. abort properly.  TOTALLY bizarre!
  60.  
  61. It reminds me of something I saw in FOGHORN the other day.  I 
  62. quote at length from November 1988 FOGHORN, an article entitled 
  63. _WordStar 4 Revisited_ by one Steven Wilcox:
  64.  
  65.        Since reviewing WordStar 4 in the January 1988 
  66.        issue of FOGHORN, I feel compelled to do a brief 
  67.        follow-up after reading other reviews and comments 
  68.        over the past few months.
  69.  
  70.        I read with interest Robert Highley's instructions 
  71.        in the June, 1988 issue of FOGHORN ("Invoking 
  72.        Proportionally Spaced Printing with WordStar") 
  73.        concerning proportional printing with WS4.
  74.  
  75.        [My interest in h]is article was prompted by my 
  76.        observation of WorStar's inconsistency in 
  77.        producing proportionally spaced text; sometimes it 
  78.        would work, but other times it would output the 
  79.        bizarre right-ragged format described in Robert's 
  80.        article.  Significantly, these differences in 
  81.        output would show up on exactly the same file from 
  82.        one day to the next, and occasionally even during 
  83.        the same session.
  84.  
  85.        I scoured the manual to ensure I was setting the 
  86.        dot commands and printer correctly - and I was.
  87.  
  88.        After a week or two I finally realized that proper 
  89.        output occurred after using (now get this!) the 
  90.        file utility NSWEEP during a computing session.  I 
  91.        didn't necessarily have to use it on the file 
  92.        being printed, or even that file's disk.  In fact, 
  93.        I didn't have to do anything with NSWEEP; only run 
  94.        it, exit from it, then run WordStar.
  95.  
  96.        This doesn't mean NSWEEP holds magic powers over 
  97.        WS [typical computer users' secular rationalism - 
  98.        rc], but rather that NSWEEP is probably 
  99.        initializing a critical memory location.  Remember 
  100.        that both WordStar and NSWEEP occupy or overlap 
  101.        the same memory locations while running.  When one 
  102.        program ends and the next starts, the latter is 
  103.        written over the first in memory.
  104.  
  105.        If the second program fails to initialize a 
  106.        particular byte in memory, it ends up using 
  107.        whatever the first program left there.  After 
  108.        power-up, this supposed unitialized location in WS 
  109.        would contain a zero.  After running NSWEEP, it's 
  110.        undoubtedly something else that works.  Programs 
  111.        other than NSWEEP may produce that same results, 
  112.        but I haven't had the time or interest to explore 
  113.        that possibility.
  114.  
  115. Sounds pretty much like what's going on with me, eh wot?  Except 
  116. I have the added ZEX403 factor.
  117.  
  118. Anyway, you come up with your own explanation.  All I know is it's 
  119. the strangest thing I've seen this side of the U.S. public's 
  120. political attitudes.
  121.  
  122. A quick solution, of course, before we (who?) do the dirty and 
  123. fun work of finding out exactly what's going on, will be for me 
  124. to replace PROTECT.COM with any of the more recent utilities such 
  125. as SFA or Carson's FA.  However, I mourn that many of our newer, 
  126. DOS-based utilities have dropped the feature that so many of 
  127. Conn's classics had of accepting a file list parameter.  That's 
  128. why I used PROTECT in the first place.  In the BACKUP.ZEX that I 
  129. use all this for I always set some files to "archived" because 
  130. for various reasons I don't want PPIP to back them up, and 
  131. PROTECT's file list abilities work very well for that.  Now I'll 
  132. have to reinvoke FA for each file I want not archived.
  133.  
  134. Anyway, happy ZEXing...
  135.