From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14204 invoked from network); 25 May 1998 09:55:11 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 25 May 1998 09:55:11 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id FAA28534; Mon, 25 May 1998 05:46:15 -0400 (EDT) Resent-Date: Mon, 25 May 1998 05:45:35 -0400 (EDT) Message-Id: Date: Mon, 25 May 98 11:46 MET DST From: matthi@finlandia.Infodrom.North.DE (Matthias Kopfermann) To: zsh-users@math.gatech.edu Subject: pipelines and && Resent-Message-ID: <"Y_XG12.0.Oz6.-sJQr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1544 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu I would very much like to know how sublists and pipelines are done: I read the following without understanding how to do it: "If two pipelines are separated by ``&&'', the second pipeline is executed only if the first is successful (returns a zero value). If two pipelines are separated by ``||'', the second is executed only if the first is unsuccessful (returns a nonzero value). Both operators have equal precedence and are left associative." now i try something like: ls | wc && | less (just to understand the mechanism) ^ ^ There are two pipelines 1) | wc 2) | less They are separated by &&. Result: "zsh: parse error near `|'" I seem to do it wrong. could you give some examples here?