From: Bruce Stephens <b.stephens@isode.com>
To: zsh-users@math.gatech.edu
Subject: Re: jobs command and pipes
Date: 30 Oct 1998 15:08:49 +0000 [thread overview]
Message-ID: <vbk91irsse.fsf@snake.isode.com> (raw)
In-Reply-To: "Owen M. Astley"'s message of "Fri, 30 Oct 1998 14:36:05 +0000 (GMT)"
"Owen M. Astley" <oma1000@cam.ac.uk> writes:
> Why is it that the jobs command in zsh will not work with a pipe,
> although redirecting it to a file does work?
>From a practical point of view, it's surely obvious. You can
implement
A | B
by forking twice, redirecting I/O appropriately in the two children,
and then one child executes A, and one executes B. I suspect
jobs | wc
*does* work. But the child process shell which executes the builtin
jobs doesn't have any jobs, so the result isn't interesting.
jobs > foo
doesn't require jobs to be executed in a subshell, so it'll work as
expected. (i.e., you get the list of jobs in the current shell,
rather than the empty list of jobs in a newly forked shell.)
So I think it's logical; probably a feature rather than a bug. If
it's a bug, I wouldn't expect a fix soon.
prev parent reply other threads:[~1998-10-30 15:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <199810301148.LAA20596@diamond.tao.co.uk>
1998-10-30 12:43 ` zsh-3.1.5 released Geoff Wing
1998-10-30 14:36 ` jobs command and pipes Owen M. Astley
1998-10-30 15:03 ` Zefram
1998-10-30 16:14 ` Stefan Monnier
1998-10-30 17:01 ` Zefram
1998-10-30 22:14 ` Dan Nelson
1998-10-30 15:08 ` Bruce Stephens [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vbk91irsse.fsf@snake.isode.com \
--to=b.stephens@isode.com \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).