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

Re: Probs with nested braces in PROMPT



> 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