Subject: Re: Possible parsing bug with alternate for-loop syntax
From: Mikael Magnusson <[email-masked]>
To: Bart Schaefer <[email-masked]>
Cc: zsh workers <[email-masked]>
Date: Sat, 11 Jun 2016 21:21:51 +0200
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Sat, Jun 11, 2016 at 8:31 PM, Bart Schaefer
<[email-masked]> 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