From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29044 invoked from network); 26 Nov 2002 11:18:27 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Nov 2002 11:18:27 -0000 Received: (qmail 22304 invoked by alias); 26 Nov 2002 11:17:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5522 Received: (qmail 22183 invoked from network); 26 Nov 2002 11:17:47 -0000 X-Amavix: Anti-spam check done by SpamAssassin X-Amavix: Anti-virus check done by McAfee X-Amavix: Scanned by Amavix X-Authentication-Warning: greux.loria.fr: lefevre set sender to vincent@vinc17.org using -f Date: Tue, 26 Nov 2002 12:17:11 +0100 From: Vincent Lefevre To: zsh-users@sunsite.dk Subject: Re: why does "jobs | wc" not work? Message-ID: <20021126111711.GE27620@greux.loria.fr> Mail-Followup-To: zsh-users@sunsite.dk References: <20021126104930.GE1937@gmx.de> <18744.1038308955@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18744.1038308955@csr.com> X-Mailer-Info: http://www.vinc17.org/mutt/ User-Agent: Mutt/1.5.1i On Tue, Nov 26, 2002 at 11:09:15 +0000, Peter Stephenson wrote: > This isn't strictly a bug, but there's a workaround in the 4.1 code. > > In zsh > > jobs | anything > > causes the shell to fork for the left hand side of the pipeline. This > is then no longer the shell with the job control, hence doesn't show any > jobs. Other shells fork the `anything' and run `jobs' in the current > shell. But with bash for instance, both jobs | cat and true | jobs work. So, it seems that jobs still works even in a child process. The same thing that 4.1 does? -- Vincent Lefèvre - Web: - 100% validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International des Jeux Mathématiques et Logiques, TETRHEX, etc. Work: CR INRIA - computer arithmetic / SPACES project at LORIA