bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic prompt code assignment not working.


From: Paul Jarc
Subject: Re: Dynamic prompt code assignment not working.
Date: Fri, 30 Apr 2004 15:11:42 -0400
User-agent: 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]