From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from apollo.le.ac.uk ([143.210.16.125]) by hawkwind.utcs.utoronto.ca with SMTP id <24914>; Tue, 15 Jun 1999 17:57:04 -0400 Received: from happy.star.le.ac.uk ([143.210.36.58]) by apollo.le.ac.uk with smtp (Exim 2.12 #1) id 10tVIe-0005Vh-00 for rc@hawkwind.utcs.toronto.edu; Mon, 14 Jun 1999 12:53:12 +0100 Received: (qmail 5983 invoked from network); 14 Jun 1999 11:53:32 -0000 Received: from ltpcg.star.le.ac.uk (tjg@143.210.36.203) by happy.star.le.ac.uk with SMTP; 14 Jun 1999 11:53:32 -0000 To: Elliott Hughes CC: rc@hawkwind.utcs.toronto.edu In-Reply-To: <199906100948.LAA1263150@relay.ch.genedata.com> Subject: Re: backgrounded jobs Date: Mon, 14 Jun 1999 07:53:31 -0400 From: Tim Goodwin Message-ID: > 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.