From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12331 invoked from network); 11 Jul 2009 19:05:35 -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=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 11 Jul 2009 19:05:35 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 60363 invoked from network); 11 Jul 2009 19:05:28 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Jul 2009 19:05:28 -0000 Received: (qmail 20388 invoked by alias); 11 Jul 2009 19:05:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27132 Received: (qmail 20375 invoked from network); 11 Jul 2009 19:05:18 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 11 Jul 2009 19:05:18 -0000 Received: from mtaout01-winn.ispmail.ntl.com (mtaout01-winn.ispmail.ntl.com [81.103.221.47]) by bifrost.dotsrc.org (Postfix) with ESMTP id 6B88C80307FA for ; Sat, 11 Jul 2009 21:05:10 +0200 (CEST) Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout01-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090711190510.HGTN6742.mtaout01-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Sat, 11 Jul 2009 20:05:10 +0100 Received: from pws-pc.ntlworld.com ([81.107.42.185]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090711190510.NZVT13254.aamtaout01-winn.ispmail.ntl.com@pws-pc.ntlworld.com> for ; Sat, 11 Jul 2009 20:05:10 +0100 Received: from pws-pc (pws-pc [127.0.0.1]) by pws-pc.ntlworld.com (8.14.3/8.14.2) with ESMTP id n6BJ54oS026712 for ; Sat, 11 Jul 2009 20:05:04 +0100 Message-Id: <200907111905.n6BJ54oS026712@pws-pc.ntlworld.com> From: Peter Stephenson To: zsh-workers@sunsite.dk Subject: Re: non-interactive set -m In-Reply-To: Message from Peter Stephenson of "Sat, 11 Jul 2009 19:57:02 BST." <20090711195702.52896b2a@pws-pc> Date: Sat, 11 Jul 2009 20:05:04 +0100 X-Cloudmark-Analysis: v=1.0 c=1 a=NLZqzBF-AAAA:8 a=k8buIfFyynY6d_atWaAA:9 a=swypjXjbLDHwjcKLEz6XkL2IDhcA:4 a=_dQi-Dcv4p4A:10 X-Virus-Scanned: ClamAV 0.94.2/9555/Sat Jul 11 10:31:19 2009 on bifrost X-Virus-Status: Clean Peter Stephenson wrote: > (The other chunk is because we allow "jobs" to work in a subshell > so you can pipe its output---if you "set -m" you're effectively making > the shell the output for "jobs" twice.) ^ The missing word is "save". When you do "set -m" in the subshell you're wiping the record of the parent shell's job control---that's inevitable if you now want the subshell to do its own job control. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/