From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14252 invoked from network); 13 Aug 2006 21:45:52 -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=BAYES_00,FORGED_RCVD_HELO 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:45:52 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 13607 invoked from network); 13 Aug 2006 21:45:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Aug 2006 21:45:44 -0000 Received: (qmail 612 invoked by alias); 13 Aug 2006 21:45:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10599 Received: (qmail 603 invoked from network); 13 Aug 2006 21:45:37 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Aug 2006 21:45:37 -0000 Received: (qmail 12571 invoked from network); 13 Aug 2006 21:45:37 -0000 Received: from gw01.mail.saunalahti.fi (195.197.172.115) by a.mx.sunsite.dk with SMTP; 13 Aug 2006 21:45:35 -0000 Received: from kuori.saunalahti.fi (kuori.saunalahti.fi [195.197.175.23]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id 5DD8B151116 for ; Mon, 14 Aug 2006 00:45:33 +0300 (EEST) Received: by kuori.saunalahti.fi (Postfix, from userid 11801) id 17CFF2E; Mon, 14 Aug 2006 00:45:33 +0300 (EEST) Date: Mon, 14 Aug 2006 00:45:33 +0300 From: Anssi Saari To: zsh-users@sunsite.dk Subject: Re: weird zsh problem with background procs and scripts Message-ID: <20060813214532.GA4959@sci.fi> Mail-Followup-To: Anssi Saari , zsh-users@sunsite.dk References: <20060812223515.GA9470@fast> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060812223515.GA9470@fast> User-Agent: Mutt/1.4.2.1i On Sat, Aug 12, 2006 at 03:35:15PM -0700, Tyler Spivey wrote: > If you put the following into a loop it won't work. Is there a > workaround? > > #!/bin/zsh > while :;do > ed & > jobs > sleep 1 > done > > this should launch a bunch of eds int he background, but only seems to > load one. > zsh -x shows that it's not even taking the &. Do you really want to launch a bunch of eds or is there something else you're trying to accomplish? Ed happens to quit immediately when started like that, so the script doesn't do much. You can for example start a bunch of sleeps with that.