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

Probs with nested braces in PROMPT



Are nested braces supposed to work in PROMPT (zsh 3.1.9-dev-2)? 
I tried this:

PROMPT='%{^[[5;46m%}%m:%l %T %~${PROJECT:+ %{^[[31m[%}}$PROJECT${PROJECT:+]%{^[[30m%}}%#%{^[[0m%}'

which looks good if PROJECT is set, for example with PROJECT=ecc:

    eggink3:1 11:25 ~/necht [ecc]%

(actually nicely coloured). However, when PROJECT is not set, it results
in something ugly:

    eggink3:1 11:26 ~/necht}}%

Bug or feature?

Regards,
Bernd

-- 
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
eggink@xxxxxxxxxxxxxx
http://www.rrz.uni-hamburg.de/eggink/BEggink.html



Messages sorted by: Reverse Date, Date, Thread, Author