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

Re: jobs command and pipes



Owen M. Astley wrote:
>Why is it that the jobs command in zsh will not work with a pipe, although
>redirecting it to a file does work?

If the jobs command is on the left hand side of a pipeline, the shell has
to fork, and the jobs builtin runs in the forked process.  This process
is not in control of any jobs, so the jobs command has nothing to report.

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author