From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16720 invoked by alias); 17 Jul 2015 19:36:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35813 Received: (qmail 18361 invoked from network); 17 Jul 2015 19:36:32 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.0 X-Originating-IP: [80.3.228.158] X-Spam: 0 X-Authority: v=2.1 cv=P+nH/X0u c=1 sm=1 tr=0 a=P+FLVI8RzFchTbbqTxIDRw==:117 a=P+FLVI8RzFchTbbqTxIDRw==:17 a=NLZqzBF-AAAA:8 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=Td1ECHQyDZLsucH4k-gA:9 a=CjuIK1q_8ugA:10 Date: Fri, 17 Jul 2015 20:30:56 +0100 From: Peter Stephenson To: Bart Schaefer , zsh-workers@zsh.org Subject: Re: "bad substitution" error for ${a[b]} Message-ID: <20150717203056.6cd686fc@ntlworld.com> In-Reply-To: <150716134702.ZM650@torch.brasslantern.com> References: <150715170944.ZM32760@torch.brasslantern.com> <20150716093031.745437e3@pwslap01u.europe.root.pri> <150716134702.ZM650@torch.brasslantern.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 16 Jul 2015 13:47:02 -0700 Bart Schaefer wrote: > On Jul 16, 9:30am, Peter Stephenson wrote: > } > } [...] we could do with taking some of the parameter substitution test > } cases and feeding them through NO_EXEC. > > Any suggestions which ones? The only thing that should have changed > with 35799 is subscript handling. > > The following caes all work, but of course "work" means "do nothing at > all" -- so I guess the point is just to assert that there are no errors? Yes, just a random selection including subscripts to have a bit of confidence it's roughly in order. That looks reasonable. Thanks pws