Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh: Strange feature with 'jobs' commmand
- X-seq: zsh-users 5012
- From: Borsenkow Andrej <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: zsh: Strange feature with 'jobs' commmand
- Date: Thu, 30 May 2002 16:37:54 +0400 (MSD)
- Cc: Björn Johannesson <d00bjojo@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- In-reply-to: <E17DOqs-0001J4-00@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
On Thu, 30 May 2002, Oliver Kiddle wrote:
>
> Incidentally, I think bash special cases the jobs builtin and would
> run less in a subshell in this case instead. Could we do something like
> this in zsh?
>
IIRC bash runs right part of every pipe in subshell. We run left pipe.
This makes it possible to do something like
foo | read FOO_RESULT
that assigns return value of foo to FOO_RESULT. It does not work in bash.
Just how useful (often used) this feature is is different qustion :-)
Anyway, I am afraid, changing it requires quite a major rewrite. And in
current zsh you have jobstates and jobtexts arrays that make 'jobs | less'
hardly ever needed.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author