rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Decklin Foster <fosterd@hartwick.edu>
To: rc@hawkwind.utcs.toronto.edu
Subject: Re: rc error messages from scripts
Date: Thu, 9 Dec 1999 02:37:35 -0500	[thread overview]
Message-ID: <19991209023735.A305@debian> (raw)
In-Reply-To: <199912081509.QAA05614@trillian.softwell.se>; from bengt@softwell.se on Wed, Dec 08, 1999 at 10:09:34AM -0500

Bengt Kleberg writes:

> When developing scripts I sometimes get the error message:
> line 25: syntax error near '('

I agree this is annoying. Equally annoying is this:

; )
syntax error
; mbogo
mbogo not found

I want it to print "rc: syntax error" (or better yet, "syntax error
near ')'"). In general, the UNIX custom for these things is that the
basename of argv[0] should be printed before the error. (Unless it's
set to '-rc' for a login shell, in which case we should change it to
'rc'.)

I note that bash handles segfaults as a special case, and just prints
"Segmentation fault". I'd be more inclined to go for consistency and
use "rc: segmentation fault". But might that cause people to think rc
was segfaulting? Perhaps, "rc: segmentation fault in child proccess
1234". How's that?

I'll volunteer to do the work for this, as long as Tim thinks it's a
good idea.

-- 
Decklin
Written with Debian GNU/Linux - http://www.debian.org/


  reply	other threads:[~1999-12-09  8:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-08 15:09 Bengt Kleberg
1999-12-09  7:37 ` Decklin Foster [this message]
1999-12-09  8:10 Byron Rakitzis
     [not found] <199912090829.AAA23488@peanut.rakitzis.com>
1999-12-09 13:59 ` Decklin Foster
1999-12-10  7:40 Byron Rakitzis

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=19991209023735.A305@debian \
    --to=fosterd@hartwick.edu \
    --cc=rc@hawkwind.utcs.toronto.edu \
    --subject='Re: rc error messages from scripts' \
    /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

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).