Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in alias expansion
- X-seq: zsh-workers 37109
- From: Kynn Jones <kynnjo@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Bug in alias expansion
- Date: Sat, 14 Nov 2015 13:57:47 -0500
- Cc: zsh-workers@xxxxxxx
- 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==
- In-reply-to: <151113170324.ZM32765@torch.brasslantern.com>
- 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
- References: <CAFvQaj4AKN36Ntdxt0rNCqPxWFHtjLMt3zPK65y2Xf9G5iUfWA@mail.gmail.com> <151113170324.ZM32765@torch.brasslantern.com>
On Fri, Nov 13, 2015 at 8:03 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author