Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `jobs | wc -l' => 0 ... bug?
- X-seq: zsh-workers 13784
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: `jobs | wc -l' => 0 ... bug?
- Date: Tue, 27 Mar 2001 08:54:02 +0200 (MET DST)
- In-reply-to: Peter Stephenson's message of Mon, 26 Mar 2001 15:29:03 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> > From: neonatus@xxxxxxxxxxxx (Bostjan Muller)
> > 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
>
> jobs here runs in a subshell, where there is no job control, so no
> information on jobs. It has always been this way. It's not particularly
> convenient, however. Maybe it's time someone thought about changing it.
>
> The only workaround is to use a temporary file for output.
But in zsh one can do that faster with ${#jobdirs} (or jobstates or
jobtexts) anyway. After the parameter module is loaded.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author