From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mod.civil.su.OZ.AU ([129.78.142.6]) by hawkwind.utcs.toronto.edu with SMTP id <2738>; Wed, 7 Apr 1993 23:17:11 -0400 Received: by mod.civil.su.oz.au id <28689>; Thu, 8 Apr 1993 13:16:53 +1000 From: John (Most modern computers would break if you stood on them) Mackin Date: Wed, 7 Apr 1993 23:12:41 -0400 To: The rc Mailing List Subject: minor but annoying rc-1.4 bug Message-ID: <199304081312.14307.rc.bagez@civil.su.oz.au> X-Face: 39seV7n\`#asqOFdx#oj/Uz*lseO_1n9n7rQS;~ve\e`&Z},nU1+>0X^>mg&M.^X$[ez>{F k5[Ah<7xBWF-@-ru?& @4K4-b`ydd^`(n%Z{ In certain circumstances, rc 1.4 reports an error with the incorrect line number, and I don't mean off by one. The simplest case I have at the moment is this one: --- begin try #!/usr/local/bin/rc fn runtimeerror { $1 = fred } echo before while (true) { runtimeerror echo loop end } echo after --- end try A run gives me: : mod;; try before line 15: null variable name Line 15 is the close curly on the while loop. If you don't have the while loop, it correctly reports the error as being on the line where the call to the "runtimeerror" function was. This can be (and was) a real hassle if the loop was bigger (mine was) and if you don't know what's going on (I didn't at first :). OK, John.