From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10180 invoked from network); 30 May 2002 12:38:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 30 May 2002 12:38:18 -0000 Received: (qmail 7830 invoked by alias); 30 May 2002 12:38:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5012 Received: (qmail 7819 invoked from network); 30 May 2002 12:38:03 -0000 From: Borsenkow Andrej To: Oliver Kiddle Cc: =?iso-8859-1?Q?Bj=F6rn_Johannesson?= , zsh-users@sunsite.dk Date: Thu, 30 May 2002 16:37:54 +0400 (MSD) X-X-Sender: bor@itsrm2.mow.siemens.ru Subject: Re: zsh: Strange feature with 'jobs' commmand In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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