Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Probs with nested braces in PROMPT
- X-seq: zsh-users 3258
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>, "Zsh users list" <zsh-users@xxxxxxxxxxxxxx>
- Subject: RE: Probs with nested braces in PROMPT
- Date: Thu, 6 Jul 2000 14:19:24 +0400
- Importance: Normal
- In-reply-to: <0FX900MG0TOBBR@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
>
> The problem was that ordinary ${...} doesn't know about
> %-substitution in
> prompts, nor should it (that would be a horrendous
> complication involving
> different levels of substitution). So it took the brace in
> `%}' as the
> brace closing the substitution.
Yes, of course. But why it did it only when parameter was undefined? I
mean, parsing is done by lexer - and it has to find the closing brace in
any case and lexer does not know (is it true?) about parameter values.
That is incosistent IMHO and smells more like a bug.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author