Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux)
dmarsh@hpsvdjm.ipf.fc.hp.com wrote:
> Dynamic prompt code assignment not working.
> This not only blows away \u, \w, etc. but it blows away
> colors because delimiting non-printing characters doesn't work
> so the shell gets confused about the length of the prompt with colors.
Those escape sequences aren't intended to be usable in that way,
AFAICT - they are interpreted only when they appear directly in the
value of $PS*. But this works:
PROMPT_COMMAND='PS1=$(setprompt)'
paul