From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1294 invoked by alias); 3 Nov 2014 00:04:41 -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: 19316 Received: (qmail 27850 invoked from network); 3 Nov 2014 00:04:29 -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=AduIQRnG c=1 sm=1 tr=0 a=WX1zAfUMD62odRRZjfQOeg==:117 a=WX1zAfUMD62odRRZjfQOeg==:17 a=gmhVCtT3eHoA:10 a=N659UExz7-8A:10 a=3FRqnOPOk_zXIOXzikYA:9 a=pILNOxqGKmIA:10 Message-id: <5456C747.9090900@eastlink.ca> Date: Sun, 02 Nov 2014 16:07:35 -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: Oliver Kiddle Cc: zsh-users@zsh.org Subject: Re: for loop question References: <5456984A.3020001@eastlink.ca> <20141102213713.GA4412@chaz.gmail.com> <5456B3E6.4040907@eastlink.ca> <16789.1414970651@thecus.kiddle.eu> In-reply-to: <16789.1414970651@thecus.kiddle.eu> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 11/02/2014 03:24 PM, Oliver Kiddle wrote: > As you can see, the syntaxes conflict. While we could add a simple way > to escape back into normal syntax from arithmetic syntax, it'd be no > nicer than the existing alternatives. > Oliver This is going to take so long to get comfortable with . Anyway, you can't break the grammar. It might look like it could be simple, but if it's a violation, then it's a violation. For now I'll take it on faith that this: (z[$([ -n "$TLC[i]" ])0]),$? == 0; is as simple as it can be. Practically speaking, tho, those other examples are very nice, so this is just theoretical whining.