From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16557 invoked by alias); 14 Nov 2015 18:57:51 -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: 37109 Received: (qmail 20458 invoked from network); 14 Nov 2015 18:57:50 -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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5e3CnO9vSxvUlHrNxR5MpJ7mVyMpeRv8j+h9sSfL+pU=; b=C2Qs495Ct0ObvgukHvuLmN/posrfyz8Car5v+n+/JQA0boByKoHjQcs/kTv5kRJ3HY sf9rHN0JxNJjuA4Mw+hY4C5ekBEd7IHZrMsyMLwwyNEASMMuYH/F3HMcmlgv8cJFSb9E Z3LDiIvJTtOd4HMbioBWvzSwp/TOsYi1lIh/e0WCyWhorihWwnUMHXu+Fk24hEqn4+4c 0f0ajTFq7sQbSR9isR4KeHaf7GrtPnFupogj9omkzgda2R9bIM0JbF1MTxi4LOnhJvoi fSAYSzv3BH47HZ4xKfavDiW6eHxpJsoBZE2bgSu+lhgRH3NCqyW47ZXDI0vTX3e4wPHi IImg== MIME-Version: 1.0 X-Received: by 10.28.87.1 with SMTP id l1mr9868781wmb.72.1447527467227; Sat, 14 Nov 2015 10:57:47 -0800 (PST) In-Reply-To: <151113170324.ZM32765@torch.brasslantern.com> References: <151113170324.ZM32765@torch.brasslantern.com> Date: Sat, 14 Nov 2015 13:57:47 -0500 Message-ID: Subject: Re: Bug in alias expansion From: Kynn Jones To: Bart Schaefer Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On Fri, Nov 13, 2015 at 8:03 PM, Bart Schaefer wrote: > On Nov 13, 1:03pm, Kynn Jones wrote: > } > } % typeset -A frobozz > } % alias -g foo='echo xyz' > } % frobozz[$(foo)]=9 > } zsh: not an identifier: frobozz[$(fooech9 > > Confirmed. This only occurs for assignments in command position: Thanks for the confirmation. > ... This only occurs for assignments in command position: > torch% typeset frobozz[$(foo)]=9 > torch% print ${(kv)frobozz} > xyz 9 > torch% > Unfortunately, the assignment preceded by `typeset` fails under 5.0.7 % alias -g foo='echo xyz' % typeset frobozz[$(foo)]=9 zsh: no matches found: frobozz[xyz]=9