From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9069 invoked by alias); 27 Jul 2015 15:34:58 -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: 35933 Received: (qmail 10056 invoked from network); 27 Jul 2015 15:34:56 -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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=nVDMQcDEeOVTPFs5AH3eooYBJgLDhgPUW7Cv+gOBkGI=; b=CgRDYH5iDvsklZQ5OZOhNUCCHmtvSq/e3Cfm3DkzF/fvqEVpH/RFJ00MXk1HDXILTP HnOR7AehkhD137rwlgXhv1IqlWgK5ouZPBn+Gc9+9LEY7xFcLz/2UxG92NHL4rKPzras XnPikRlc7ldvRignGfxXjncSn+MuEvKBgE8aKOe7Dyhiz7/TXAuIH4xRpCBt4g3ejuyL Ew4yKzmzc075qfEkNxBdVSqPv8r44b6KFatBw3cpB7togYSfnXtdYU/DbrefDyoYMjWB HXU/PjmdXafl0N2vd/BasLXquLt89fGqonST5GtvQ4iicHXrIn6cSd81EK5pVV0mDVy8 PWGQ== X-Gm-Message-State: ALoCoQk1tyf1pTevBEOdy/m2PPDxAY/1eQ4pyG9efYJNPJGe/8X/79dqDlMZla3D3gPv8JLbhhI/ X-Received: by 10.182.230.70 with SMTP id sw6mr28594145obc.48.1438011292837; Mon, 27 Jul 2015 08:34:52 -0700 (PDT) From: Bart Schaefer Message-Id: <150727083449.ZM6064@torch.brasslantern.com> Date: Mon, 27 Jul 2015 08:34:49 -0700 In-Reply-To: <877fpllniy.fsf@gmail.com> Comments: In reply to Christian Neukirchen "5.0.8 regression regarding $() in arithmetic for-loops" (Jul 27, 3:48pm) References: <877fpllniy.fsf@gmail.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: 5.0.8 regression regarding $() in arithmetic for-loops MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 27, 3:48pm, Christian Neukirchen wrote: } } The following three forms are broken in zsh-5.0.8-0-gf0068ed (release) } and zsh-5.0.8-109-gb6a2f11: } } % for (( $(true) ; ; )) do echo yes; done } zsh: parse error near `; ' } zsh: parse error near `$(true) ; ; )) do ec...' Furthermore: torch% for (( $(true) ; ; )) do echo yes; done zsh: parse error near `; ' zsh: parse error near `$(true) ; ; )) do ec...' torch% (( $(echo 1) )) zsh: segmentation fault (core dumped) Src/zsh 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)