From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20924 invoked by alias); 13 Nov 2015 18:27:48 -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: 37103 Received: (qmail 9749 invoked from network); 13 Nov 2015 18:27:46 -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:date:message-id:subject:from:to:content-type; bh=+fplEO7PWIPVFgmSvHJY/ug6z2WnmmsmD9s/Pm97yCY=; b=HwUt1XY4yEpVrvp/LRFSuqeBWcmig3D1yPc5BdsQL6yLXnfxzb3ANuk+d4RFOQpubl 9gRYB9A9pAbzuocKP16aj9CQMenWdyzZNaepGwbhYMbjUSqUpcGGMS1DJ8PDr1jbcvCE hGQHY+QpL1+AVXDH0MErIW5aQ/VUs+VHgy3cxfxI62xEEnDIY/mSLc2nqIDb31wmiip1 KVkcCZDVJOnOzco4aZP5ooh29JpcxrfsIPQubVBgyYaysf4TEuhVUiEEj2LU6wQj8qJQ LfmZGXdF4nsqZsCPqfCrsJ+2ZdDn73YzD4PH4Fc2Qitnq5xSFyzwNILMHaijRmtrMIqJ yRHg== MIME-Version: 1.0 X-Received: by 10.28.22.203 with SMTP id 194mr4876715wmw.45.1447437832284; Fri, 13 Nov 2015 10:03:52 -0800 (PST) Date: Fri, 13 Nov 2015 13:03:52 -0500 Message-ID: Subject: Bug in alias expansion From: Kynn Jones To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 The example below illustrates the problem: #### OK VERSION 5.0.7 #### % zsh --version zsh 5.0.7 (x86_64-pc-linux-gnu) % typeset -A frobozz % alias -g foo='echo xyz' % frobozz[$(foo)]=9 % echo ${(kv)frobozz} xyz 9 #### FAILING VERSION 5.1 #### % zsh --version zsh 5.1 (i386-unknown-netbsdelf6.1) % typeset -A frobozz % alias -g foo='echo xyz' % frobozz[$(foo)]=9 zsh: not an identifier: frobozz[$(fooech9 In the examples above, the code is identical in both cases, up to (and including) the first failing command. Failure reproduced also under zsh 5.1.1 (x86_64-debian-linux-gnu). (Ref: http://unix.stackexchange.com/q/242730/10618) kj