From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26284 invoked by alias); 28 Jul 2015 08:35:56 -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: 35941 Received: (qmail 4207 invoked from network); 28 Jul 2015 08:35:54 -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, Peter Stephenson Subject: Re: 5.0.8 regression regarding $() in arithmetic for-loops Date: Tue, 28 Jul 2015 10:35:45 +0200 Message-ID: <2541320.9goV5iBpxM@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: <150727083449.ZM6064@torch.brasslantern.com> References: <877fpllniy.fsf@gmail.com> <150727083449.ZM6064@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.26 On Monday 27 July 2015 08:34:49 Bart Schaefer wrote: > This happens after this example too: > > } % for (( ; $(true) ; )) do echo yes; done > } zsh: parse error > } zsh: parse error near `$(true) ; )) do echo...' > > But not after this example: > > } % for (( ; ; $(true) )) do echo yes; done > } zsh: parse error near `true' > } zsh: parse error near `$(true) )) do echo y...' > > I suspect we have a wordcode problem similar to the one with "case" > statements that was fixed earlier (although from a different parser > change). > > #0 0x080ca7c1 in has_token (s=0x0) at ../../zsh-5.0/Src/utils.c:2030 > #1 0x080a7115 in ecstrcode (s=0x0) at ../../zsh-5.0/Src/parse.c:390 > #2 0x080a83f5 in par_cmd (cmplx=0xbff140ec, zsh_construct=0) It seems to be caused by the following commit: http://sourceforge.net/p/zsh/code/ci/c0d01a6f Kamil