From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25905 invoked from network); 26 Mar 2001 15:35:46 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 26 Mar 2001 15:35:46 -0000 Received: (qmail 23369 invoked by alias); 26 Mar 2001 15:35:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 13776 Received: (qmail 23357 invoked from network); 26 Mar 2001 15:35:37 -0000 Date: Mon, 26 Mar 2001 17:33:36 +0200 From: Thomas =?iso-8859-1?Q?K=F6hler?= To: zsh workers mailing list Subject: Re: `jobs | wc -l' => 0 ... bug? Message-ID: <20010326173336.A13989@picard.franken.de> Mail-Followup-To: Thomas =?iso-8859-1?Q?K=F6hler?= , zsh workers mailing list References: <20010326161810.C24352@thelonious.new.ox.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline User-Agent: Mutt/1.3.15i In-Reply-To: <20010326161810.C24352@thelonious.new.ox.ac.uk>; from adam@spiers.net on Mon, Mar 26, 2001 at 04:18:10PM +0100 X-Operating-System: Linux picard 2.2.17 X-Editor: VIM - Vi IMproved 6.0z ALPHA http://www.vim.org/ X-IRC: tirc; Nick: jeanluc X-URL: http://jeanluc-picard.de/ --AhhlLboLdkugWU4S Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 26, 2001 at 04:18:10PM +0100, Adam Spiers wrote: >=20 > ----- Forwarded message from Bostjan Muller ----- >=20 > Date: Fri, 23 Mar 2001 18:09:31 +0100 > To: Adam Spiers > Subject: Re: the power of zsh > From: neonatus@neonatus.net (Bostjan Muller) > X-Parp-Accepted: had In-Reply-To: header >=20 > [snip] >=20 > Only one more thing.. I used to include a command in my prompt, that disp= layed > the number of background processes running I got the number with the foll= owing > command: > jobs | wc -l | tr -d " " > but in zsh wc does not seem to get any input: > $ jobs > [1] - suspended mc > [3] + suspended mc >=20 > $ jobs | wc -l > 0 >=20 > Where in bash I get this: > $ jobs > [1]- Stopped /usr/bin/mc $* > [2]+ Stopped /usr/bin/mc $* >=20 > $ jobs | wc -l > 2 > ----- End forwarded message ----- >=20 > This is a bug, surely? Well, it's not what one would expect (and the section about "jobs" in "man zshbuiltins" doesn't mention such behaviour), so you might call it a bug. Of course, you can still use $jobstates for many things. Tried that? Ciao, Thomas --=20 Thomas K=F6hler Email: jean-luc@picard.franken.de | LCARS - Linux <>< WWW: http://jeanluc-picard.de | for Computers IRC: jeanluc | on All Real PGP public key available from Homepage! | Starships --AhhlLboLdkugWU4S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6v2FQTEYXWMJlHuYRAnV/AJ9ZScjFtV4h7bcihtu81sGoGDWfFgCfbcS4 HvwOPglwbfSy4spH0nPuPFw= =hwGO -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--