home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / sysv386 / 17412 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.7 KB  |  45 lines

  1. Newsgroups: comp.unix.sysv386
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnews!adh
  3. From: adh@cbnews.cb.att.com (andrew.d.hay)
  4. Subject: Re: vi error "Tmp file too large"
  5. Organization: AT&T
  6. Date: Tue, 15 Dec 1992 16:14:11 GMT
  7. Message-ID: <1992Dec15.161411.22802@cbnews.cb.att.com>
  8. References: <215@ucla-an.UUCP>
  9. Lines: 34
  10.  
  11. In article <215@ucla-an.UUCP> daveh@ucla-an.UUCP (Dave Hammond) writes:
  12. "
  13. "On a WYSE system running their flavor of UNIX 3.2, I get an error
  14. "from vi, "Tmp file too large" when I attempt to edit a file of
  15. "more than ~5000 lines.  I've done this on several other systems
  16. "(SCO XENIX, SCO UNIX, ALTOS UNIX, BSD) without any problems.
  17. "
  18. "Is this a well known UNIX 3.2 problem?
  19.  
  20. i'd say yes.
  21.  
  22. "Is there a patch or workaround for this problem?
  23.  
  24. several people have been close...
  25.  
  26. it's a vi problem, but not with pdp11 being #defined; rather, with
  27. vmunix _not_ being #defined, which makes vi _think_ it's on a pdp-11.
  28. this results in a fixed 256K tempfile, as others have noted.  with
  29. vmunix #defined, vi dynamically allocates space for the tempfile.
  30.  
  31. oddly, there are _separate_ #defines for bsd, usg, and vmunix.  i
  32. found this out when i hit the tmpfile limit once too often and got
  33. thoroughly irritated.  i grabbed the src [sVr3.1.1], uncommented the
  34. vmunix #define, recompiled, and presto! had a vi that worked fine on
  35. 1M+ files.
  36.  
  37. complain to your vendor -- there's no excuse except laziness/ignorance
  38. for them not to fix vi.
  39.  
  40. -- 
  41.         +--------------------------------------------------------------+
  42. Andrew Hay    |    one step beyond the outer limits of the twilight       |
  43. a_d_hay@att.com    |    zone in the darkened room at the night gallery           |
  44.         +--------------------------------------------------------------+
  45.