From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e200d23cd5e92a89,start X-Google-Attributes: gidfee84,public From: Bruce Hartley Subject: Having a problem with Dig Unix 4.0d, BaaN, and vi Date: 1999/09/28 Message-ID: <37F18541.2CE59370@ctg.com>#1/1 X-Deja-AN: 530557153 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rochester.rr.com X-Trace: typhoon.nyroc.rr.com 938575096 24.95.213.129 (Tue, 28 Sep 1999 23:18:16 EDT) Organization: CTG, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Tue, 28 Sep 1999 23:18:16 EDT Newsgroups: comp.unix.osf.osf1 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