From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13437 invoked from network); 15 Mar 2009 16:29:16 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 15 Mar 2009 16:29:16 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 12716 invoked from network); 15 Mar 2009 16:26:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 15 Mar 2009 16:26:05 -0000 Received: (qmail 21526 invoked by alias); 15 Mar 2009 16:25:47 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13916 Received: (qmail 21517 invoked from network); 15 Mar 2009 16:25:46 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 15 Mar 2009 16:25:46 -0000 Received: from vms173009pub.verizon.net (vms173009pub.verizon.net [206.46.173.9]) by bifrost.dotsrc.org (Postfix) with ESMTP id 9FE8280307F8 for ; Sun, 15 Mar 2009 17:25:42 +0100 (CET) Received: from torch.brasslantern.com ([96.249.201.13]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KGK0020T2YJQ84G@vms173009.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 15 Mar 2009 11:25:32 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n2FGPUN7004909 for ; Sun, 15 Mar 2009 09:25:30 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n2FGPTWp004908 for zsh-users@sunsite.dk; Sun, 15 Mar 2009 09:25:29 -0700 From: Bart Schaefer Message-id: <090315092529.ZM4907@torch.brasslantern.com> Date: Sun, 15 Mar 2009 09:25:29 -0700 In-reply-to: <20090315064707.10333.qmail@smasher.org> Comments: In reply to Atom Smasher "$! - PID of disowned jobs" (Mar 15, 7:47pm) References: <20090315064707.10333.qmail@smasher.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@sunsite.dk Subject: Re: $! - PID of disowned jobs MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.92.1/9110/Sun Mar 15 06:06:44 2009 on bifrost X-Virus-Status: Clean On Mar 15, 7:47pm, Atom Smasher wrote: } } the docs say this about "$!": } ! The process ID of the last command started in the background } with &, or put into the background with the bg builtin. } } is it a bug or undocumented feature that it also works with jobs that are } disowned with "&|" or "&!"? I would say it's both documented and a feature. Starting something with "&|" is still starting something in the background with "&" -- it's just shorthand for "something & disown ;"