Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] In reference to patch 39815, about (z) flag and $( parse error
On Tue, 10 Oct 2017 20:49:17 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> So the doc says that (Z:n:) "causes unquoted newlines to be treated as
> ordinary whitespace" but in fact what it really does is cause newline
> *not* to be converted into a separator; it is still labeled as its
> own separate token, which confuses this parse.
>
> The following fixes it, but it seems a hack -- is there a better way?
To restrict it just to this case, you mean? It ought to be possible to
detect specific flags. But as long as it does something plausible I
don't think it matters. The way it sits on top of the lexical analyser
is perpetual work in progress.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author