Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

`jobs | wc -l' => 0 ... bug?



----- Forwarded message from Bostjan Muller <neonatus@xxxxxxxxxxxx> -----

Date: Fri, 23 Mar 2001 18:09:31 +0100
To: Adam Spiers <adam@xxxxxxxxxx>
Subject: Re: the power of zsh
From: neonatus@xxxxxxxxxxxx (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?



Messages sorted by: Reverse Date, Date, Thread, Author