Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Possible parsing bug with alternate for-loop syntax
- X-seq: zsh-workers 38662
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Possible parsing bug with alternate for-loop syntax
- Date: Sat, 11 Jun 2016 21:21:51 +0200
- Cc: zsh workers <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:from:date:message-id:subject:to :cc; bh=TshWZj8iGpRGcxr8AypVxWDP19kRvb2/h8R1kp7xJXY=; b=AcoGIh8g4YPTJsK0FqWlTmuRCqb7PdS2tK6Owf8vCng3pVBvtQ1NUOKc1o2MAvROkO 8+7BSlN+dLFkzpvx90RLiCInhuHYa53JZf3DxoIAeaeZAMNdBlXOikA2qezpJhNZatnZ DRY4W3xGcglbFohpxykmb5VpvzgXCNHPqgM+7Yx9FWC5PHWsKb3w8WNVMy5tLVmtPKcq I9Q8MCbmQfVAN5Dk9eLfzqtceV7uWG/dIL23qOl5njSoPLeQ4i4krG3vMXeY7uGR4d1w w6kX/UmrPF5U6qJUNhNLt3fezkvUodjR7BJlGDNVHFZBcM5woUfaO5jDiHaxW5B/Cf+i BtbQ==
- In-reply-to: <160611113127.ZM13090@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: <CAHYJk3QbvQmFLb9SBXg9+swTO7WMyEcd8NjW37Qve8G-G5JAWw@mail.gmail.com> <160611113127.ZM13090@torch.brasslantern.com>
On Sat, Jun 11, 2016 at 8:31 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> Doesn't have anything to do with for-loop syntax:
>
> torch% a=hi}; echo $a
> hi}
> torch% {a=hi}; echo $a
> cursh>
>
> It's assignment parsing. The "}" is always considered part of the
> value assigned to the variable.
Ah, you're right, the same thing happens with function parsing as well,
% () {a=hi}
function>
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author