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

Re: Bug in ${(z)...} lexing, or what?



> >   % a='[[ a = (#i)foo ]]'
> >   % print -l ${(z)a}
> >   [[
> >   a
> >   =
> >   (
> >   #i
> >   )
> >   foo
> >   ]]
> 
> Strange, I get (#i)foo on one line, even with zsh -f.  There must be some
> unexpected option dependence, but I can't see what.

That was before applying the patch (the correct behaviour).  After, I get:

[[
a
=
(
;

with interactivecomments set (which is wrong), and what Sven was reporting
without it (which isn't great).  I'd much prefer the old behaviour in this
case, but the interactivecomments variant is definitely broken.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
Cambridge Silicon Radio, Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070



Messages sorted by: Reverse Date, Date, Thread, Author