From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e200d23cd5e92a89 X-Google-Attributes: gidfee84,public From: "Marco Benton" Subject: Re: Having a problem with Dig Unix 4.0d, BaaN, and vi Date: 1999/10/03 Message-ID: #1/1 X-Deja-AN: 532475384 References: <37F18541.2CE59370@ctg.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@mediaone.net X-Trace: ndnws01.ne.mediaone.net 938998933 24.218.144.71 (Sun, 03 Oct 1999 21:02:13 EDT) Organization: eXpert Systems Solutions X-MSMail-Priority: Normal Reply-To: "Marco Benton" NNTP-Posting-Date: Sun, 03 Oct 1999 21:02:13 EDT Newsgroups: comp.unix.osf.osf1 i think i remember seeing a few patches like that fixed in PK4. are you running the latest patch kit for OSF? Bruce Hartley wrote in message news:37F18541.2CE59370@ctg.com... > Thanks in advance for any help or insights into this problem. > > About a year ago, and especially after adding keystroke escape sequence > macros vi .exrc as suggested in the O'Reilly and Associates book on vi, > we have been having an intermittent problem that occurs at least once a > day. > > As a background, we are a BaaN shop. We are running BaaN version IVb2. > For those of you who don't know, BaaN has their own terminal emulator > that is better than plain telnet. I don't think it's the source of the > problem, but I'm mentioning it just in case. > > What happens is that we will be editing a source file and will want to > delete a line of code via dd. It works at first, and then you get the > following at the bottom of the screen: > > Bad file number > > What you also see displayed on line line that you just tried to delete > is: > > /var/tmp/Rx01278 > > The only way out is to issue a w! command to force the changes you have > made to be written, then (q)uit, and then get back into vi. It gets to > be a real pain when it happens 6 times a day. It also runs in spurts, > today was real bad, other times we can go for weeks without seeing it. > > Other interesting notes are as follows: > > 1 - I wrote a .exrc file for all of us at work, and the ones who use it > see this problem more than the others. However, it may also be due to > the fact that they do more editing. > > 2 - We access BaaN via BaaN's special client BW ( again, I don't think > this matters ) > > 3 - I've never seen it happen with Microsoft Telnet, but I hardly ever > use it ( once every 3 months ). > > 4 - You can't do a w command to save your work, you must use w! to force > the save > > My thinking on this is that there is a bug in vi that causes it to > "lose" the file id that is associated with that file, which appears to > hold deleted lines in case you decide to do an "u"ndo operation. As > soon as that happens, you can't do any more deletes. However, you can > add more lines to the file plus delete characters. I suspect that what > happens is that some chain of events cause the file id inside the > program to get corrupted, thus preventing the command from working. > > My questions are, has anyone else ever seen this type of problem, and if > so, what did you do about it if anything? Our system admins are > stumped. > > Thanks; > > Bruce Hartley >