From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28805 invoked from network); 26 Nov 2002 10:49:10 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 26 Nov 2002 10:49:10 -0000 Received: (qmail 3777 invoked by alias); 26 Nov 2002 10:48:40 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5519 Received: (qmail 3756 invoked from network); 26 Nov 2002 10:48:38 -0000 Date: Tue, 26 Nov 2002 11:49:30 +0100 From: Dominik Vogt To: zsh-users@sunsite.dk Subject: why does "jobs | wc" not work? Message-ID: <20021126104930.GE1937@gmx.de> Reply-To: dominik.vogt@gmx.de Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i There seems to be a strange bug with the jobs command in zsh-4.0.4. It seems that the output of the jobs command refuses to go into a pipe. This works: $ sleep 1000 & [1] 6262 $ jobs > foo $ wc foo 1 5 29 foo <-- But this does not: $ sleep 1000 & [1] 6262 $ jobs | wc 0 0 0 <-- ? And also: $ echo `jobs` $ Is there a specific reason why jobs generates no output when running in a pipe? Note: In pdksh and bash (as bash and sh), jobs works as I would expect; csh and tcsh work like zsh. Bye Dominik ^_^ ^_^ P.S.: Please CC me.