From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7652 invoked from network); 29 Oct 2006 11:59:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.7 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Oct 2006 11:59:42 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 90323 invoked from network); 29 Oct 2006 11:59:34 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Oct 2006 11:59:34 -0000 Received: (qmail 16366 invoked by alias); 29 Oct 2006 11:59:28 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22916 Received: (qmail 16356 invoked from network); 29 Oct 2006 11:59:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 29 Oct 2006 11:59:27 -0000 Received: (qmail 89751 invoked from network); 29 Oct 2006 11:59:27 -0000 Received: from mtaout01-winn.ispmail.ntl.com (81.103.221.47) by a.mx.sunsite.dk with SMTP; 29 Oct 2006 11:59:25 -0000 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com with ESMTP id <20061029115924.XLNY15018.mtaout01-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Sun, 29 Oct 2006 11:59:24 +0000 Received: from pwslaptop.csr.com ([81.107.46.114]) by aamtaout03-winn.ispmail.ntl.com with ESMTP id <20061029115924.ILOP11710.aamtaout03-winn.ispmail.ntl.com@pwslaptop.csr.com> for ; Sun, 29 Oct 2006 11:59:24 +0000 Received: from pwslaptop.csr.com (pwslaptop.csr.com [127.0.0.1]) by pwslaptop.csr.com (8.13.7/8.13.7) with ESMTP id k9TCwpM3003108; Sun, 29 Oct 2006 12:58:51 GMT Message-Id: <200610291258.k9TCwpM3003108@pwslaptop.csr.com> From: Peter Stephenson To: zsh-workers@sunsite.dk (Zsh hackers list), pws@pwslaptop.csr.com Subject: Re: PATCH: $! on bg In-Reply-To: Message from Bart Schaefer of "Sat, 28 Oct 2006 10:51:19 PDT." <061028105119.ZM31030@torch.brasslantern.com> Date: Sun, 29 Oct 2006 12:58:51 +0000 Bart Schaefer wrote: > } I haven't attempted to lever this into Sven's hack whereby the > } shell can fork and allow you to put a job that was running > } into the current shell into the background; however, it "might just > } work", since the fudged job should already be in the job table by the > } time you do "bg". > > No, it does not appear to work. I meant after the patch, though I didn't make that clear. It works for me: % while sleep 10; do : ; done [1] + 3070 suspended while sleep 10; do; :; done % bg [1] + 3070 continued while sleep 10; do; :; done % print $! 3070 -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/