rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
From: Tim Goodwin <tjg@star.le.ac.uk>
To: Elliott Hughes <Elliott.Hughes@genedata.com>
Cc: rc@hawkwind.utcs.toronto.edu
Subject: Re: backgrounded jobs
Date: Mon, 14 Jun 1999 07:53:31 -0400	[thread overview]
Message-ID: <JXAAADvtZDevegMA@ltsun0.star.le.ac.uk> (raw)
In-Reply-To: <199906100948.LAA1263150@relay.ch.genedata.com>

> 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",

Does this suffice?

        fn prompt {
                if (!~ $apid $lastapid) {
                        echo kill $apid
                        lastapid=$apid
                }
        }

> 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 didn't really give much thought to this; just left the "bug" in the
man page.  But doesn't this function come close?  You can use `myshift
x' to shift $x by one, or `myshift y 3' to shift $y by 3.  The only flaw
is that `myshift a' doesn't work.

    fn myshift { a=$*; *=$$a(1); shift $a(2); $a(1)=$* }

Tim.


  parent reply	other threads:[~1999-06-15 21:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-10  9:48 Elliott Hughes
1999-06-11 13:17 ` Gerry.Tomlinson
1999-06-14 11:53 ` Tim Goodwin [this message]
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=JXAAADvtZDevegMA@ltsun0.star.le.ac.uk \
    --to=tjg@star.le.ac.uk \
    --cc=Elliott.Hughes@genedata.com \
    --cc=rc@hawkwind.utcs.toronto.edu \
    --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).