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

Re: why does "jobs | wc" not work?



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