Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Probs with nested braces in PROMPT
- X-seq: zsh-users 3260
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx (Zsh users list)
- Subject: Re: Probs with nested braces in PROMPT
- Date: Thu, 06 Jul 2000 12:09:57 +0100
- In-reply-to: "Your message of Thu, 06 Jul 2000 14:19:24 +0400." <000801bfe733$a8aef590$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
> 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.
No, in that case it got the `%{...%' from inside the braces, then found the
(wrong) closing brace, then found the neglected `}' from the parameter
expansion, therefore getting the complete expression %{...%}. In this case
it didn't matter which brace was which.
--
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