Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Possible parsing bug with alternate for-loop syntax



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