From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2918 invoked from network); 13 Aug 2006 21:54:18 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,UNPARSEABLE_RELAY autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Aug 2006 21:54:18 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 21173 invoked from network); 13 Aug 2006 21:54:10 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Aug 2006 21:54:10 -0000 Received: (qmail 2664 invoked by alias); 13 Aug 2006 21:54:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10600 Received: (qmail 2655 invoked from network); 13 Aug 2006 21:54:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Aug 2006 21:54:03 -0000 Received: (qmail 20241 invoked from network); 13 Aug 2006 21:54:03 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 13 Aug 2006 21:54:01 -0000 Received: from torch.brasslantern.com ([71.121.0.226]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J3Y00HQSI5ZYBO0@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 13 Aug 2006 16:54:00 -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 k7DLrwtg005891 for ; Sun, 13 Aug 2006 14:53:58 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k7DLrvkL005890 for zsh-users@sunsite.dk; Sun, 13 Aug 2006 14:53:57 -0700 Date: Sun, 13 Aug 2006 14:53:57 -0700 From: Bart Schaefer Subject: Re: weird zsh problem with background procs and scripts In-reply-to: <20060812223515.GA9470@fast> To: zsh-users@sunsite.dk Message-id: <060813145357.ZM5889@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20060812223515.GA9470@fast> Comments: In reply to Tyler Spivey "weird zsh problem with background procs and scripts" (Aug 12, 3:35pm) On Aug 12, 3:35pm, Tyler Spivey wrote: } } If you put the following into a loop it won't work. Is there a } workaround? What exactly do you expect to happen when you run "ed" in the background? As far as I can tell it simply exits immediately, which would explain why you only have one of them running at a time. } zsh -x shows that it's not even taking the &. You are misled. "zsh -x" does not print the "&" because it doesn't print *any* command separators. Compare with: #! /bin/zsh -f while :;do sleep 5 & sleep 6 & jobs sleep 1 done