bug-bash
[Top][All Lists]
Advanced

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

Dynamic prompt code assignment not working.


From: dmarsh
Subject: Dynamic prompt code assignment not working.
Date: Fri, 30 Apr 2004 12:41:07 -0600 (MDT)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H  -I.  
-I/data/src/build/kde/woody/src/backports/bash/bash-2.05b 
-I/data/src/build/kde/woody/src/backports/bash/bash-2.05b/include 
-I/data/src/build/kde/woody/src/backports/bash/bash-2.05b/lib  -g -O2
uname output: Linux hpsvdjm.ipf.fc.hp.com 2.4.23-686-mpt-smp-64g-1 #1 SMP Wed 
Dec 10 15:03:48 MST 2003 i686 unknown
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 >
    dmarsh > PS1="\$(setprompt)"
    \u > echo $PS1
    $(setprompt)
    
    This last prompt is a function which evals to \u, which should but
    does NOT evaluate to username, "dmarsh".


Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]




reply via email to

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