Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
why does "jobs | wc" not work?
- X-seq: zsh-users 5519
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: why does "jobs | wc" not work?
- Date: Tue, 26 Nov 2002 11:49:30 +0100
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: dominik.vogt@xxxxxx
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.
This works:
$ sleep 1000 &
[1] 6262
$ jobs > foo
$ wc foo
1 5 29 foo <--
But this does not:
$ sleep 1000 &
[1] 6262
$ jobs | wc
0 0 0 <-- ?
And also:
$ echo `jobs`
$
Is there a specific reason why jobs generates no output when
running in a pipe?
Note: In pdksh and bash (as bash and sh), jobs works as I would
expect; csh and tcsh work like zsh.
Bye
Dominik ^_^ ^_^
P.S.: Please CC me.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author