From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8462 invoked by alias); 28 Mar 2018 09:58:29 -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: List-Unsubscribe: X-Seq: 42552 Received: (qmail 17929 invoked by uid 1010); 28 Mar 2018 09:58:29 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(205.235.26.22):SA:0(-1.4/5.0):. Processed in 15.106723 secs); 28 Mar 2018 09:58:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: SRS0=TzE5=GS=yahoo.co.uk=okiddle@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1522231069; bh=B/fFSYqwItTFTFt7bxNeoNa/iCamPr1H/JboJueONxc=; h=From:References:To:Subject:Date:From:Subject; b=onQVw3DZ4yzHBnzNIrtlT3+27v9D53pUJMqfqMbdZZuaRZArNQqpQe5JQyc+pYQ+2UHU9MjII3gVKJr+ioQCE4oqRk5mgC5ZgTi5RtL6tLxnIfTCaM4LLGN0mmi6T//+wT+fo7xh6AmoalLWK0YTp/yP4lRCg4VBXJDa9uo619eEuoN8WyWj8vT+vY5aVHSDAGLOgi4WJ44rqbtttWJENrsHwXriRLICgRdfMOGUbLM8F+BgMO4cZubFIbl/ekDOCJrTh933JIfh47aqWwMuzvpizTz58I+Qq1GOZiVqrvnyAdNiZJwPN/kf+i32+cXMKW37NUG9b2jn4axBAyDv2w== X-YMail-OSG: lMWl9HoVM1nSf4CbBsLZil.A4y04kBMcGqofkU8QGWATjNQAJ0SMta1EZ2gfB52 A8Muhk5.8ISEY27ucudflRLs47yueOgpcWBpE2EVZ89vGOWxWL8vGyfw17SOKXJapriphmSJsqr4 mYJ1GHPQ14EeUQKXR6R9gllflHf8eQH3OrNLJS950dCJQk7l1jv8MJt2mDfHeo6AFKmVjGSVXUxD Ve1kJx0h.TqrVcQIK2hNfZgSSUbl7lJohnLwpDTKnO9.LiR9GQitwHZ2Mlt5PqMI1npkwQwfU5nc 87NX7sx8S6jV1h9nvLt8Eev2r6kTZSknqhDJ4_Om3tnxQMw5o2Z6AYBtd8hx9gX1k46MZVkHpwM6 TEN_uGU8aNxxfGX7zkd2YSp1ynwnbVvum6Znb6N9TVxW9GkH6DB6zHJuziN.1LqYzAT.qFlZ735D 7fd6NxQLQN2JEzfhFkJA6jTiolG8k_BD8HlxBjnukceG6pB67rcxKjvWywMjRMZoOepyNTgkQwwo 6LS5ASMBgwCAdOORp4jAyuZaJVG0SaQ-- cc: Zsh workers In-reply-to: <20180327125641.3df8e5a1@camnpupstephen.cam.scsc.local> From: Oliver Kiddle References: <5777.1522148738@thecus> <20180327125641.3df8e5a1@camnpupstephen.cam.scsc.local> To: Peter Stephenson Subject: Re: lexer issue MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <9530.1522231067.1@thecus> Content-Transfer-Encoding: 8bit Date: Wed, 28 Mar 2018 11:57:47 +0200 Message-ID: <9531.1522231067@thecus> Peter wrote: > Oliver Kiddle wrote: > > Does anyone know what may be causing this: > > > > echo $(( ((##h << 8) + ##e) << 8)+ > > ??? echo $(( ((##h << 8) + > > > > This is with space bound to magic-space. > > This will be to do with the fact that you've closed one of the > parentheses of the arithmetic expression, but not the other, so the next > expansion has decided it's a command substitution. In that, the ##e is > a comment, so gets stripped. In fact, I'm not seeing the effect you > are, which may be down to options, or to the fact that the way we handle > interactive comments changed recently, or a combination. It can be reproduced starting from zsh -f with nothing more than bindkey ' ' magic-space So interactive_comments is not set. I managed to bisect it and it was introduced with 34160 (c0d01a6). Whether it is parsed as a command substitution or arithmetic expression, there's nothing in there that might be interpreted as being a history expansion so magic-space should not do anything regardless of how the parser sees it. Oliver