From: John (Most modern computers would break if you stood on them) Mackin <john@ civil.su.oz.au>
To: The rc Mailing List <rc@hawkwind.utcs.toronto.edu>
Subject: minor but annoying rc-1.4 bug
Date: Wed, 7 Apr 1993 23:12:41 -0400 [thread overview]
Message-ID: <199304081312.14307.rc.bagez@civil.su.oz.au> (raw)
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.
next reply other threads:[~1993-04-08 3:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-04-08 3:12 John Mackin [this message]
1993-04-08 4:21 Paul Haahr
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199304081312.14307.rc.bagez@civil.su.oz.au \
--to=john@civil.su.oz.au \
--cc=rc@hawkwind.utcs.toronto.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).