From: "Thomas Köhler" <jean-luc@picard.franken.de>
To: zsh workers mailing list <zsh-workers@sunsite.auc.dk>
Subject: Re: `jobs | wc -l' => 0 ... bug?
Date: Mon, 26 Mar 2001 17:33:36 +0200 [thread overview]
Message-ID: <20010326173336.A13989@picard.franken.de> (raw)
In-Reply-To: <20010326161810.C24352@thelonious.new.ox.ac.uk>; from adam@spiers.net on Mon, Mar 26, 2001 at 04:18:10PM +0100
[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]
On Mon, Mar 26, 2001 at 04:18:10PM +0100,
Adam Spiers <adam@spiers.net> wrote:
>
> ----- Forwarded message from Bostjan Muller <neonatus@neonatus.net> -----
>
> Date: Fri, 23 Mar 2001 18:09:31 +0100
> To: Adam Spiers <adam@spiers.net>
> Subject: Re: the power of zsh
> From: neonatus@neonatus.net (Bostjan Muller)
> X-Parp-Accepted: had In-Reply-To: header
>
> [snip]
>
> Only one more thing.. I used to include a command in my prompt, that displayed
> the number of background processes running I got the number with the following
> command:
> jobs | wc -l | tr -d " "
> but in zsh wc does not seem to get any input:
> $ jobs
> [1] - suspended mc
> [3] + suspended mc
>
> $ jobs | wc -l
> 0
>
> Where in bash I get this:
> $ jobs
> [1]- Stopped /usr/bin/mc $*
> [2]+ Stopped /usr/bin/mc $*
>
> $ jobs | wc -l
> 2
> ----- End forwarded message -----
>
> 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
--
Thomas Köhler 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
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next prev parent reply other threads:[~2001-03-26 15:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-26 15:18 Adam Spiers
2001-03-26 15:29 ` Peter Stephenson
2001-03-26 16:48 ` Bart Schaefer
2001-03-26 17:04 ` Peter Stephenson
2001-03-27 13:13 ` Adam Spiers
2001-03-26 15:33 ` Thomas Köhler [this message]
2001-03-27 6:54 Sven Wischnowsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010326173336.A13989@picard.franken.de \
--to=jean-luc@picard.franken.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).