From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9120 invoked by alias); 8 Oct 2015 19:56:23 -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: 20713 Received: (qmail 19785 invoked from network); 8 Oct 2015 19:56:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=qW47PADDKXGJn6aGdN70Rg==:117 a=qW47PADDKXGJn6aGdN70Rg==:17 a=N659UExz7-8A:10 a=VL5qP5zRXRFR2Rt3-r8A:9 a=pILNOxqGKmIA:10 Message-id: <5616CA62.20604@eastlink.ca> Date: Thu, 08 Oct 2015 12:56:18 -0700 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: zsh-users@zsh.org Subject: Re: not an error? References: <20151008102315.0136766a@pwslap01u.europe.root.pri> <151008094643.ZM4110@torch.brasslantern.com> <5616AB69.8080706@eastlink.ca> <151008122236.ZM4177@torch.brasslantern.com> In-reply-to: <151008122236.ZM4177@torch.brasslantern.com> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit On 10/08/2015 12:22 PM, Bart Schaefer wrote: > Given the quotes, the only reason too many open braces is a problem is > when you are inside the syntax of ${...} where braces are significant. > As soon as a matching close-brace is found, double-quote context is > active again and braces cease to have meaning. > Right. Yeah, I know about the special nature of the ${} syntax, but as you say, once a closing brace is found, the following brace is just a character within the quotes. It bugs me how long it's taking me to stop thinking in C. Mind ... do you ever really need the outer quotes around an array like that? Without the quotes I get my error msg as I'd intuitively expect it, and it seems now that it's the quotes that are counterintuitive because ${} obviates them, no? In this case it seems only to hide the '}' error, still ... with the 'quote everything' rule I end up hardly even seeing quotes anymore and it gets lazy, I'd like to use them to effect, not just as a matter of course.