Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug in ${(z)...} lexing, or what?
- X-seq: zsh-workers 12235
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Bug in ${(z)...} lexing, or what?
- Date: Wed, 12 Jul 2000 17:57:46 +0100
- In-reply-to: "Your message of Wed, 12 Jul 2000 12:11:40 BST." <0FXL00LET0FF5Y@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
> > % 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