Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!hao!ames!ucbcad!ucbvax!vms.CIS.PITTSBURGH.EDU!Postmaster From: Postmaster@vms.CIS.PITTSBURGH.EDU.UUCP Newsgroups: comp.os.vms Subject: Undeliverable mail Message-ID: <8710281116.AA26683@ucbvax.Berkeley.EDU> Date: Mon, 26-Oct-87 10:42:00 EST Article-I.D.: ucbvax.8710281116.AA26683 Posted: Mon Oct 26 10:42:00 1987 Date-Received: Sat, 31-Oct-87 02:40:06 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 64 The message could not be delivered to: Addressee: 000426 Reason: %MAIL-E-NOSUCHUSR, no such user 10217_000426 at node CISVM2 ---------------------------------------- Received: from JNET-DAEMON by vms.cis.pittsburgh.edu; Mon, 26 Oct 87 00:58 EDT Received: From CMUCCVMA(MAILER) by PITTVMS with RSCS id 3767 for 000426@PITTVMS; Mon, 26-OCT-1987 00:31 EDT Received: by CMUCCVMA (Mailer X1.25) id 3763; Mon, 26 Oct 87 00:33:16 EST Date: 21 Oct 87 19:28:25 GMT From: Gregg Wonderly Subject: Re: TPUVI Bug Sender: INFO-VAX Discussion To: BETH DOE <000426@vms.cis.pittsburgh.edu> Reply-to: INFO-VAX@KL.SRI.COM Comments: Warning -- original Sender: tag was info-vax-request@kl.sri.com Comments: To: info-vax@kl.sri.com in article <8710201014.AA04165@ucbvax.Berkeley.EDU>, VAUGHAN@CANISIUS.BITNET (Tom Vaughan @ Computer Center) says: > > I have put up TPU-VI and have encountered a problem: > > using the global substitution command > :g/targetstring/s//replace string/g > > The VI editor goes into an infinite tail spin giving me > that "Line Length at Maximum, Can't Insert Characters" type of message. > You can't break out with ctrl-y or ctrl-c, luckily we are on a PBX > and can disconnect. > You are the second person that I have heard of that uses :g/targetstring/s//replace string/g as opposed to the more obvious :%s/targetstring/replace string/g TPU VI is not attempting to use any special techniques here for determining that the source string of the 's' command is null, so it should use the string from the global command. The global command only identifies a line to act on. The substitute command is then applied to that line. What you are experiencing is TPU always matching a null pattern, and then inserting the 'replace string', thus lengthening the line forever. The simple workaround is to use the second notation given above. I have made TPU VI compatible with this notation, but it was not obvious to me that it should have worked that way. ----- Gregg Wonderly Department of Mathematics Oklahoma State University UUCP: {cbosgd, ihnp4, rutgers}!okstate!nemo.math.okstate.edu!gregg ARPA: gregg@NEMO.MATH.OKSTATE.EDU