Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why does "jobs | wc" not work?
- X-seq: zsh-users 5522
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: why does "jobs | wc" not work?
- Date: Tue, 26 Nov 2002 12:17:11 +0100
- In-reply-to: <18744.1038308955@xxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20021126104930.GE1937@xxxxxx> <18744.1038308955@xxxxxxx>
On Tue, Nov 26, 2002 at 11:09:15 +0000, Peter Stephenson wrote:
> This isn't strictly a bug, but there's a workaround in the 4.1 code.
>
> In zsh
>
> jobs | anything
>
> causes the shell to fork for the left hand side of the pipeline. This
> is then no longer the shell with the job control, hence doesn't show any
> jobs. Other shells fork the `anything' and run `jobs' in the current
> shell.
But with bash for instance, both
jobs | cat
and
true | jobs
work. So, it seems that jobs still works even in a child process.
The same thing that 4.1 does?
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
Messages sorted by:
Reverse Date,
Date,
Thread,
Author