rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Elliott Hughes <Elliott.Hughes@genedata.com>
To: rc@hawkwind.utcs.utoronto.ca
Subject: backgrounded jobs
Date: Thu, 10 Jun 1999 05:48:06 -0400	[thread overview]
Message-ID: <199906100948.LAA1263150@relay.ch.genedata.com> (raw)


something i had in my own hacked-about copy of
Byron's rc is a line that output not just the pid of
a backgrounded job, rather the string "kill %i\n", on
the basis that this was the number one use of the
pid. it's particularly handy in 9term, but probably
just as useful in xterm.

how would people feel about making this part of
the distribution? i admit that it looks odd at first
because traditional shells don't work like that; you
probably have to know why its saying that not to
be disconcerted by it, but i think its usefulness
outweighs this, not least because rc users aren't
likely to be neophyte shell users who want
everything to be just like it is in sh (or bash these
days, i suppose).

Plan 9 rc doesn't do this, but that's probably
because "kill %i |rc\n" would just look _too_
weird. that, or they didn't think of it.

i also have a replacement for the shift built-in
that does the things whose absence is listed as
a bug on the man page, if anyone's interested.
i used it in a big nasty rc script once, before
i repented and stopped writing complicated
things as shell scripts. it's only a couple of
lines longer than the current builtin, and it
would mean we could remove a "bug",
though.

[i assume i'm on this list: i subscribed but
haven't seen anything. but i haven't seen
anything on wilyfans in the same period,
so maybe things are just quiet.]

	- Elliott

-- 
"Act Swiss. Be Global." -- ABB Werbung, 1999.


             reply	other threads:[~1999-06-10 21:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-10  9:48 Elliott Hughes [this message]
1999-06-11 13:17 ` Gerry.Tomlinson
1999-06-14 11:53 ` Tim Goodwin
1999-06-10 22:00 steve.kilbane
1999-06-14 13:23 Elliott Hughes

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=199906100948.LAA1263150@relay.ch.genedata.com \
    --to=elliott.hughes@genedata.com \
    --cc=rc@hawkwind.utcs.utoronto.ca \
    --subject='Re: backgrounded jobs' \
    /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).