Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why does "jobs | wc" not work?
- X-seq: zsh-users 5523
- From: Stephane Chazelas <chazelas@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: why does "jobs | wc" not work?
- Date: Tue, 26 Nov 2002 12:24:57 +0100
- Cc: Dominik Vogt <dominik.vogt@xxxxxx>
- In-reply-to: <20021126104930.GE1937@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20021126104930.GE1937@xxxxxx>
On Tue, Nov 26, 2002 at 11:49:30AM +0100, Dominik Vogt wrote:
> There seems to be a strange bug with the jobs command in
> zsh-4.0.4. It seems that the output of the jobs command refuses
> to go into a pipe.
[...]
It's more a problem of subshell.
( jobs )
doesn't work.
Note that you can get the number of jobs with ${#jobtexts}
Here is my PS1:
PS1='%(?..%B(%?%)%b)%m:%50<..<%~${jobtexts:+"[${#jobtexts}]"}%(#.#.$) '
--
Stéphane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author