Description of problem: The jobs command output cannot be sent through a pipe. $ sleep 300 & [1] 21238 $ jobs [1] + running sleep 300 $ jobs | wc 0 0 0 Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: $ sleep 300 & [1] 21238 $ jobs [1] + running sleep 300 $ jobs | wc 0 0 0 Actual Results: 'jobs' seems to produce no output when reading from the pipe. Expected Results: the pipe reading process should receive the same output as is printed on the terminal when just typing 'jobs' Additional info:
produced using zsh-4.0.4-8, but the bug is present in some earlier versions, too.
Still seems to be present in zsh-4.0.6.
Seems to be ok with zsh-4.0.6.
Still doesn't work, even with 4.0.6: /home/rene: sleep 1000& [1] 1221 /home/rene: jobs [1] + running sleep 1000 /home/rene: jobs | wc 0 0 0 /home/rene: echo $ZSH_VERSION 4.0.6 /home/rene: rpm -q zsh zsh-4.0.6-5
Same for 4.0.6-7: /home/rene: jobs [1] + running sleep 1000 /home/rene: jobs | wc 0 0 0 /home/rene: echo $ZSH_VERSION 4.0.6 /home/rene: rpm -q zsh zsh-4.0.6-7
Reproduced again :) Not sure, why I thought it was ok. Ok, it turns out this is a known problem - see the thread starting with http://www.zsh.org/mla/users/2002/msg00755.html and in particular http://www.zsh.org/mla/users/2002/msg00772.html It seems 4.1 has some workaround for this.