rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Byron Rakitzis <byron@rakitzis.com>
To: fosterd@hartwick.edu, rc@hawkwind.utcs.toronto.edu
Subject: Re: rc error messages from scripts
Date: Fri, 10 Dec 1999 02:40:39 -0500	[thread overview]
Message-ID: <199912100740.XAA29337@peanut.rakitzis.com> (raw)

> Ah. silly me. How about changing the other messages and leaving
> 'segmentation fault' as a special case (ie, no argv[0])? would you
> welcome such a patch?

Let's see:

	; ash
	$ )
	Syntax error: ")" unexpected
	$ ; csh
	[leica@peanut]$ )
	Too many )'s.
	[leica@peanut]$ exit
	; bash
	bash$ )
	bash: syntax error near unexpected token `)'
	bash$ exit

Okay, on my own linux machine it seems only bash puts argv[0] in for its
"private" error messages.

You can argue about whether this is right or wrong but I don't see a
compelling reason to make rc do the same thing as bash. As I mentioned
before, I think there is an argument to be made for rc's errors being
unadorned, as the user is in a sense engaging in a "private" conversation
with rc before any forks or execs have happened. Maybe this is stretching
a metaphor a little too far, but that's how I feel about these parser
error messages.


             reply	other threads:[~1999-12-10  8:35 UTC|newest]

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

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199912100740.XAA29337@peanut.rakitzis.com \
    --to=byron@rakitzis.com \
    --cc=fosterd@hartwick.edu \
    --cc=rc@hawkwind.utcs.toronto.edu \
    --subject='Re: rc error messages from scripts' \


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