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

RE: Probs with nested braces in PROMPT



>
> 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