From: haahr@mv.us.adobe.com (Paul Haahr)
To: alan@oldp.astro.wisc.edu
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: Differences between Duff's rc and Byron's
Date: Thu, 27 May 1993 02:48:33 -0400 [thread overview]
Message-ID: <9305270648.AA05256@astro.mv.us.adobe.com> (raw)
> The user
> need never type $^foo, although obviously rc needs to know what to do
> with $foo^' '^$bar.
why? all of rc's concatenation can be written in terms of loops.
there's nothing magic about them (unlike ~ which can't be written
as a function, due to the fact that one of its arguments isn't
globbed). they are purely there for convenience, too.
> The only excuses for $^foo are typing convenience and speed, and I very
> much doubt the later is especially noticeable.
> > newpgrp on the other hand is a hack. it's there because otherwise rc
> > would be much less usable on some (admittedly broken) systems.
> Educate me: why can't you use the nice, nohup, et al. approach?
i did something like this for a while. $SHELL was a wrapper which did
the newpgrp, set SHELL to rc, and exec'ed rc. worked, until i needed
$SHELL in that context not to create a new pgrp for some other purpose.
from my perspective, a processes' pgrp is similar to its signals, limits,
etc. the shell manages those, so its not unreasonable for it to manage
the pgrp if it manages those other things.
> I
> don't understand enough of why it's there in the first place to decide
> for myself. Where do you use it -- once per login-shell, or
> continually through a session, or what?
once per window, in my fn prompt. if not, control-c in one window
sends sigint to all the terminal windows. the vendor never noticed
this since they assumed that all shells were like csh and did their
own pgrp manipulation.
> And, hey, the test command on Ultrix is broken, and rc would be much
> more useable if it were built-in. :-)
supply your own /usr/local/bin/test, if you really like test's semantics.
or supply something better.
paul
next reply other threads:[~1993-05-27 6:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-05-27 6:48 Paul Haahr [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-05-27 5:02 Alan Watson
1993-05-26 17:58 Paul Haahr
1993-05-26 20:31 ` Chris Siebenmann
1993-05-26 20:32 ` Chris Siebenmann
1993-05-26 17:38 Tom Culliton x2278
1993-05-26 17:06 Paul Haahr
1993-05-26 16:53 Paul Haahr
1993-05-26 17:55 ` Chris Siebenmann
1993-05-29 12:34 ` John Mackin
1993-05-25 23:32 Alan Watson
1993-05-25 22:42 Tom Culliton x2278
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=9305270648.AA05256@astro.mv.us.adobe.com \
--to=haahr@mv.us.adobe.com \
--cc=alan@oldp.astro.wisc.edu \
--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).