From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4696 invoked by alias); 4 Nov 2014 16:57:26 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19345 Received: (qmail 15809 invoked from network); 4 Nov 2014 16:57:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Authority-Analysis: v=2.1 cv=HYUtEE08 c=1 sm=1 tr=0 a=tDZUtGgdvB6RbretPev/jw==:117 a=tDZUtGgdvB6RbretPev/jw==:17 a=gmhVCtT3eHoA:10 a=N659UExz7-8A:10 a=-QYQhCtrcg_IVwxvpUYA:9 a=pILNOxqGKmIA:10 Message-id: <5459143B.80607@eastlink.ca> Date: Tue, 04 Nov 2014 10:00:27 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.1.2 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: for loop question References: <5456984A.3020001@eastlink.ca> <20141102213713.GA4412@chaz.gmail.com> <20141104015639.GA2871@localhost.localdomain> <141103184338.ZM32221@torch.brasslantern.com> <5458743B.2000204@eastlink.ca> <141103231312.ZM32403@torch.brasslantern.com> In-reply-to: <141103231312.ZM32403@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 11/03/2014 11:13 PM, Bart Schaefer wrote: > } ... the test must surely produce an answer of some sort. > > The *nix command paradigm is organized around two concepts: Thanks Bart, that was very deeply informative, it helps me understand the bedrock on which this is all built. I asked an invalid question. It is not that an exit status is or isn't 'arithmetic', it is that an exit status is not part of a data stream. It is not *what* it is, but *where* it is that is relevant. I now see that: for ((i=1; ! $([ -n "$TLC[i]" ]; echo $?); i++)) ... is simple.