From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7156 invoked by alias); 30 Jul 2015 16:13:48 -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: 35956 Received: (qmail 13359 invoked from network); 30 Jul 2015 16:13:46 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.0 From: Kamil Dudka To: Bart Schaefer Cc: zsh-workers@zsh.org Subject: Re: PATCH Re: 5.0.8 regression regarding $() in arithmetic for-loops Date: Thu, 30 Jul 2015 18:06:06 +0200 Message-ID: <4230427.udXTo5yGmb@kdudka.brq.redhat.com> User-Agent: KMail/4.14.9 (Linux/4.0.8-304.fc22.x86_64; KDE/4.14.9; x86_64; ; ) In-Reply-To: <150729221950.ZM6401@torch.brasslantern.com> References: <877fpllniy.fsf@gmail.com> <2541320.9goV5iBpxM@kdudka.brq.redhat.com> <150729221950.ZM6401@torch.brasslantern.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 On Wednesday 29 July 2015 22:19:50 Bart Schaefer wrote: > This turns out to be a recursive-descent parsing error, we weren't saving > enough state when entering command substitution from inside math parsing. > > I'm not sure whether the "infor" stuff is actually necessary but it seemed > to make sense. The real meat is dbparens = 0 when leaving math context. This works for me, will apply it on Fedora. Thanks for the patch! Kamil