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: Chet Ramey
Subject: Re: Dynamic prompt code assignment not working.
Date: Fri, 30 Apr 2004 16:16:37 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.6) Gecko/20040113

dmarsh@hpsvdjm.ipf.fc.hp.com wrote:

Machine Type: i386-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
        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.

Repeat-By:
    genericprompt> PS1="$(setprompt)"
    dmarsh > echo $PS1
    \u >

The documentation states fairly clearly that the word expansions
are performed after the escape sequences in the prompt string are
decoded.  There's no recursive decoding of escape sequences that
might result from expansion.

Chet




reply via email to

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