Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: `jobs | wc -l' => 0 ... bug?
- X-seq: zsh-workers 13775
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: `jobs | wc -l' => 0 ... bug?
- Date: Mon, 26 Mar 2001 15:29:03 +0000
- In-reply-to: Your message of "Mon, 26 Mar 2001 16:18:10 +0100." <20010326161810.C24352@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
> 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.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author