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

Re: jobs command and pipes



>>>>> "Zefram" == Zefram  <zefram@xxxxxxxxx> writes:
> 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.

Now the question is:  why "on the left hand side" rather the other ?
Zsh isn't particularly lean and mean, os mayb eit makes sense to offer the
choice so that "jobs | something" can work (and so that we can choose which
process' exit status will be used for the whole pipe's exit status ?


	Stefan



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