From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 144 invoked from network); 16 Aug 2004 07:55:43 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Aug 2004 07:55:43 -0000 Received: (qmail 42205 invoked from network); 16 Aug 2004 07:55:37 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Aug 2004 07:55:37 -0000 Received: (qmail 17631 invoked by alias); 16 Aug 2004 07:53:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7862 Received: (qmail 17613 invoked from network); 16 Aug 2004 07:53:21 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by 130.225.247.90 with SMTP; 16 Aug 2004 07:53:21 -0000 Received: (qmail 36003 invoked from network); 16 Aug 2004 07:51:23 -0000 Received: from unknown (HELO moonbase.zanshin.com) (167.160.213.139) by a.mx.sunsite.dk with SMTP; 16 Aug 2004 07:51:21 -0000 Received: from toltec.zanshin.com (toltec.zanshin.com [64.84.47.166]) by moonbase.zanshin.com (8.12.11/8.12.11) with ESMTP id i7G7pK1f009412 for ; Mon, 16 Aug 2004 00:51:20 -0700 Date: Mon, 16 Aug 2004 00:51:20 -0700 (PDT) From: Bart Schaefer Reply-To: zsh-users@sunsite.dk To: zsh-users@sunsite.dk Subject: Re: Slightly OT: Error-Handling in a Pipeline, preferably non-zsh In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=-1.5 required=6.0 tests=BAYES_01 autolearn=no version=2.63 X-Spam-Hits: -1.5 On Sun, 15 Aug 2004, Aaron Davies wrote: > On Sunday, August 15, 2004, at 11:03 PM, Philippe Troin wrote: > > > Use your first idiom and check $pipestatus[4]. > > Thanks, that seems to solve it (though it's [3], not [4]). If you have the KSH_ARRAYS option set, it's best to say so when asking for help on this list, or you're going to see a lot of this kind of "mistake."