From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8480 invoked from network); 5 Sep 2007 12:19:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Sep 2007 12:19:08 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 58955 invoked from network); 5 Sep 2007 12:19:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Sep 2007 12:19:02 -0000 Received: (qmail 22456 invoked by alias); 5 Sep 2007 12:18:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11816 Received: (qmail 22446 invoked from network); 5 Sep 2007 12:18:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Sep 2007 12:18:53 -0000 Received: (qmail 57658 invoked from network); 5 Sep 2007 12:18:53 -0000 Received: from sol.nlnetlabs.nl (213.154.224.43) by a.mx.sunsite.dk with SMTP; 5 Sep 2007 12:18:47 -0000 Received: from elektron.atoom.net (a80-127-17-126.adsl.xs4all.nl [80.127.17.126]) by sol.nlnetlabs.nl (Postfix) with ESMTP id 18CF1188259 for ; Wed, 5 Sep 2007 14:18:46 +0200 (CEST) Received: by elektron.atoom.net (Postfix, from userid 1000) id 015743000862; Wed, 5 Sep 2007 14:18:45 +0200 (CEST) Date: Wed, 5 Sep 2007 14:18:45 +0200 From: Miek Gieben To: zsh-users@sunsite.dk Subject: Re: fg jobs info Message-ID: <20070905121845.GA10828@miek.nl> Mail-Followup-To: zsh-users@sunsite.dk References: <20070902154306.35880.qmail@smasher.org> <070902105953.ZM22915@torch.brasslantern.com> <20070903163147.GA14017@mastermind> <20070904111631.81486.qmail@smasher.org> <070904083104.ZM25598@torch.brasslantern.com> <20070905090302.72429.qmail@smasher.org> <200709050928.l859Su9h016042@news01.csr.com> <20070905112141.GA4519@miek.nl> <20070905114025.GE25214@fsst.voodoo.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline In-Reply-To: <20070905114025.GE25214@fsst.voodoo.lan> User-Agent: Vim/Mutt/Linux X-Home: www.miek.nl --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [On 05 Sep, @13:40, Frank Terbeck wrote in "Re: fg jobs info ..."] > Miek Gieben : > > [On 05 Sep, @11:28, Peter Stephenson wrote in "Re: fg jobs info ..."] > > > Atom Smasher wrote: > > > > maybe in the process of working out the bugs, there can be some add= ed=20 > > > > functionality to add a variable that automagically returns the text= of the=20 > > > > fg'd job. > > >=20 > > > That's $jobtexts. > >=20 > > Is there a way to get the jobnumber from any of these variables.=20 > > $jobstates includes a lot, but not the actual job number. > > (I want to list the current job numbers in my prompt - if there are > > any) >=20 > [snip] thanks for the respones, I got what I want: myjobs=3D${(pj:\,:)${(k)jobstates}} grtz Miek --sm4nu43k4a2Rpi4c Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFG3p6lJYuFzziA0PYRAlO0AJ9OM1aYqd9H0ZF3cYUvWM8w4wLg6ACgjOIe cw2RmJq6b1kIGCseLd4YYCs= =46jj -----END PGP SIGNATURE----- --sm4nu43k4a2Rpi4c--