rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Malte Uhl <Uhl@rrz.Uni-Koeln.DE>
To: rc@hawkwind.utcs.toronto.edu
Subject: Re: RC => POSIX
Date: Thu, 6 Mar 1997 11:57:13 -0500	[thread overview]
Message-ID: <199703061657.RAA03106@noc.rrz.Uni-Koeln.DE> (raw)
In-Reply-To: Your message of "Thu, 06 Mar 1997 10:12:14 EST." <199703061512.KAA21040@explorer2.clark.net>


> 	> The problem is harder than that in rc's case.  Signal semantics make a
> 	> good example.  To be really posixy you'd use sigaction(), and while
> 	> you can write signal() in terms of sigaction, the reverse is not very
> 	> doable.  The differences between BSD and SysV signal semantics are one
> 	> of the reasons that RC has a bunch of #if's.
> 
> 	And that's exactly his point! Why use BSD or SysV semantics when you can do 
> 	it posixly correct?
> 
> 	> Others include optional
> 	> features such as readline, nonstandard OS features that make something
> 	> work in a better, safer way when they're present such as /dev/fd and
> 	> kernel recognition of "#!" in executable scrpts.  All your proposal
> 	> would do is move the #if's into the compatibility library.
> 
> 	Again, that's the very point: To seperate the shells code from the OS stuff 
> 	as much as possible.
> 
> 	I'd even go further suggesting to drop all the "ANSI compatibility" headers 
> 	Byron once wrote. They are a major source of problems porting rc to different 
> 	platforms and to maintain it. Frequently, the declarations made in them are 
> 	slightly incompatible with the systems declarations, although hard clashes 
> 	are rare.
> 
> 	Summarising the intense discussions a few years back, we've concluded not to 
> 	add new features so, rewriting to Posix and Xopen specs gets my vote!
> 
> 	If rc was to be changed, I'd suggest setting the status variable to the 
> 	result of a backquote command in an assignment, as in
> 
> 		; x=`false || echo error
> 		error
> 		;
> 
> 	Malte
> 
> 




       reply	other threads:[~1997-03-06 16:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199703061512.KAA21040@explorer2.clark.net>
1997-03-06 16:57 ` Malte Uhl [this message]
1997-03-29 20:23 Bengt Kleberg
  -- strict thread matches above, loose matches on Subject: below --
1997-03-27  9:58 Malte Uhl
1997-03-26 11:54 Byron Rakitzis
1997-03-26 16:45 ` Greg A. Woods
1997-03-26  8:33 Bengt Kleberg
1997-03-26 16:38 ` Greg A. Woods
1997-03-25 22:30 Byron Rakitzis
1997-03-24  9:18 Bengt Kleberg
1997-03-24 20:22 ` Greg A. Woods
1997-03-08  0:13 Byron Rakitzis
1997-03-06 17:40 Tom Culliton
1997-03-06 17:15 Alan Watson
1997-03-06 17:54 ` Scott Schwartz
1997-03-06 16:54 Tom Culliton
1997-03-06 15:22 Tom Culliton
1997-03-06 14:09 Bengt Kleberg
1997-03-06 13:46 Tom Culliton
1997-03-06 10:16 Bengt Kleberg
1997-03-07  1:45 ` Greg A. Woods

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=199703061657.RAA03106@noc.rrz.Uni-Koeln.DE \
    --to=uhl@rrz.uni-koeln.de \
    --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).