rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: byron@netapp.com (Byron Rakitzis)
To: rc@hawkwind.utcs.toronto.edu
Subject: re. a minor but annoying bug
Date: Thu, 8 Apr 1993 04:28:14 -0400	[thread overview]
Message-ID: <9304080828.AA11092@netapp.netapp.com> (raw)

Well, the reason for the bug is that rc does not annotate the
parse-tree with line numbers the way a C compiler might. The error
printer makes a stab at what the line number is, by printing the number
of newlines read so far. (This trick works ok for syntax errors.)

Therefore, an error raised anywhere inside a while loop will print the
line number of the close-brace of the while loop.

I realize this is ugly, but a fix for this problem is more effort than
I can or want to put into rc right now.


             reply	other threads:[~1993-04-08 16:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-04-08  8:28 Byron Rakitzis [this message]
1993-04-08 17:06 Alan Watson

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=9304080828.AA11092@netapp.netapp.com \
    --to=byron@netapp.com \
    --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).