From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29913 invoked from network); 5 Jan 2004 19:26:34 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 5 Jan 2004 19:26:34 -0000 Received: (qmail 4277 invoked by alias); 5 Jan 2004 19:26:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6979 Received: (qmail 4202 invoked from network); 5 Jan 2004 19:26:19 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 5 Jan 2004 19:26:19 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [192.94.73.20] by sunsite.dk (MessageWall 1.0.8) with SMTP; 5 Jan 2004 19:26:18 -0000 Received: from sdf.lonestar.org (IDENT:gj@norge.freeshell.org [192.94.73.3]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id i05JQFO0020959 for ; Mon, 5 Jan 2004 19:26:15 GMT Received: (from gj@localhost) by sdf.lonestar.org (8.12.10/8.12.8/Submit) id i05JQF4J025760; Mon, 5 Jan 2004 19:26:15 GMT Date: Mon, 5 Jan 2004 19:26:15 +0000 (UTC) From: gj@sdf.lonestar.org X-X-Sender: gj@norge.freeshell.org To: zsh-users@sunsite.dk Subject: problem piping output of shell builtin Message-ID: X-Message: "Habit is the ballast that chains the dog to his vomit" --Samuel Beckett MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi all, I'm migrating from bash to zsh. It hasn't been so bad because I'm sort of new to shell programming anyways ( though I did have "fun" figuring out that zsh arrays start incrementing from 1 as opposed to bash's 0 :). I thought I'd share the latest hiccup... Why can't I pipe the output of 'jobs' thusly? % zsh --version zsh 4.0.7 (alpha--netbsd) % sleep 100 ^Z zsh: suspended sleep 100 % sleep 100 ^Z zsh: suspended sleep 100 % jobs [1] suspended pine [2] - suspended sleep 100 [3] + suspended sleep 100 % jobs | while read line; do echo $line; done % I expect the output of last sequence of commands to be more or less the same to the sequence before it, as under bash. How can I approximate the bashlike behavior I expect under zsh? Thanks for any insight, Gerald.