Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in alias expansion
- X-seq: zsh-workers 37103
- From: Kynn Jones <kynnjo@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug in alias expansion
- Date: Fri, 13 Nov 2015 13:03:52 -0500
- 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==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author