From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25702 invoked by alias); 18 Nov 2015 15:52:49 -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: 37143 Received: (qmail 10351 invoked from network); 18 Nov 2015 15:52:48 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=MBdVYYAVqomTvxpy1rAaYjN/JsqqJjYiUK5pLzKNjUQ=; b=iupkComI3gJxj2Qu1KFco3kPThCNfKY5Dff3serYXagXEYmQMqG5uMGmls6+RupPwj ihf4vsKEHUq3AD/0oiEHk1V4RT1S24EEosm1QGEs6Z9V06HeEYSi7v7bi9M/Lvu71/iC fVHNZmpQdJ8H9Q+bjhiyTZFW3X65Dwa4HIy+k/x1+FAJorrudJ0f8u2wqop7oD+aQrPW eVdRk6NyGsAB9XW4oo9FcM/i0uN49R7Z7XfDgS33SWvPGU8pKbI4bBR3+j8Ed2pbd1nf mjVTm0oPHV3KAmm44Mvm1bPKdid/imDLwgNTCcFA0GVLnNiZSVGPoxTtxpagzgVCcwYD dT4A== 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=MBdVYYAVqomTvxpy1rAaYjN/JsqqJjYiUK5pLzKNjUQ=; b=h1jZX42m8LisY2KRSJbn6cqli2R+GfmEm2B/Hatcnm9oRoXgWbik1JB5kmvjxXTMaG ujJxVrciXdaXFWe6sowD3a2Nk0P9nBKsEr/qvx+9FI4MMuc1QVQCPrcrUViAcQAh0Dzz dyJ5zoYFNO7UmVCMyN6bRwD5RehJKASEPCicGTDdKP5GR5b0IqtUL+jft3ir2WR59DH/ nkjJ0nMExNEIQaNDmTvwDaOp+MllLrrK64Ndg+MSLiLcBvSIAQznC2ihcPj6U/IPDjGM 7DEMuITysvcJRPXTMxejjgKW70suyAUg36usNbgG+/daI+bYuof+8taLP3ArYnORf4Iq hpdw== X-Gm-Message-State: ALoCoQmLTe/ty9uRZoomxJFIPQIWBuewOU000XTt60Q815fLI63R/MgHQc5mCvvm8A6XYsmxpqXL X-Received: by 10.66.254.39 with SMTP id af7mr3039206pad.43.1447861967215; Wed, 18 Nov 2015 07:52:47 -0800 (PST) From: Bart Schaefer Message-Id: <151118075246.ZM28042@torch.brasslantern.com> Date: Wed, 18 Nov 2015 07:52:46 -0800 In-Reply-To: <20151118141323.04bda5aa@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: Bug in alias expansion" (Nov 18, 2:13pm) References: <20151115200356.0f3a80a2@ntlworld.com> <151115144805.ZM20614@torch.brasslantern.com> <20151118104254.4a46d326@pwslap01u.europe.root.pri> <20151118141323.04bda5aa@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Bug in alias expansion MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 18, 2:13pm, Peter Stephenson wrote: } } Actually, now I start looking, I think I'm inclining to Mikael's view on } the interaction between this and the position of alias expansion, even } if it's global. At the top level we have $(, foo, ). foo clearly } starts within the $(. So it's hard to see how the $( can then end } within the foo; it seems to violate the hierarchy. OK, so by that logic a subscript is also in the hierarchy (and for that matter is supposed to behave mostly like double-quotes, within which aliases do not expand) so I should commit 37122. } Currently we expand both when parsing the entrails of the $(...) } and executing it, but should possibly only do so in the latter case. } I haven't look to see if this affects any tests. Would not-expanding affect cmd_or_math() adversely? Is that why we expand and then backtrack?