From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3801 invoked by alias); 18 Nov 2015 10:43:02 -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: 37136 Received: (qmail 18336 invoked from network); 18 Nov 2015 10:43:01 -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 autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79026d00000418a-9c-564c56339ab1 Date: Wed, 18 Nov 2015 10:42:54 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Bug in alias expansion Message-id: <20151118104254.4a46d326@pwslap01u.europe.root.pri> In-reply-to: <151115144805.ZM20614@torch.brasslantern.com> References: <20151115200356.0f3a80a2@ntlworld.com> <151115144805.ZM20614@torch.brasslantern.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t/xy7rGYT5hBkc/MVocbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujGf7ZrAU7GKv2HBjFksD4xfWLkZODgkBE4kprcvYIWwxiQv3 1rOB2EICSxklNqxQhrBnMEk8+63UxcgFZG9jlOhu28cCkmARUJXY0goxiE3AUGLqptmMILaI gLjE2bXnwWqEBZQlVhyYwAxi8wrYSzw+vResnlPASmLmtg5miKGrGSUWz/8PdgW/gL7E1b+f mCAuspeYeeUMI0SzoMSPyffAhjILaEls3tbECmHLS2xe85YZ4lJ1iRt3d7NPYBSahaRlFpKW WUhaFjAyr2IUTS1NLihOSs811CtOzC0uzUvXS87P3cQICdovOxgXH7M6xCjAwajEw5uw2DtM iDWxrLgy9xCjBAezkgjve12fMCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8c3e9DxESSE8sSc1O TS1ILYLJMnFwSjUwsrS//Klpl5T35nbsI5nE5hXmNRpJenzhx97e+CFS+eSXyeMY46Y2n/Ia 0VmZ+V1G5Qu18m1mC8u1fmM6GN0ztUpvQkEQf4uRRPUEzva5Z+QLi7L/bdsXpXiwp3/9iqlH Fd9kamiq3E5crbDotOXnpr+2j3MOXSzoaD940/9SQYST/I2OzVxKLMUZiYZazEXFiQAt6td7 VgIAAA== On Sun, 15 Nov 2015 14:48:05 -0800 Bart Schaefer wrote: > On Nov 15, 8:03pm, Peter Stephenson wrote: > } > } I don't know why this works in other contexts. > > Addendum: To some extent it does not. > > torch% alias foo='echo x)$(:' > torch% print $(foo) > zsh: command not found: fooecho This is a completely different problem again. There appear to be three different but interacting issues: - this one, which could be hairy as we emerge from parsing a $(...) expansion with an alias unpopped --- I'm not sure yet if that's tractable without making the code yet more unreadable - the fact that parse_subscript() made invalid assumptions about what was going underneath it, now fixed, at least to the point where it's no worse than it ever was - where alias expansion takes place, which would presumably be sensible to define properly but which I haven't yet worked up an interest in. pws