bug-bash
[Top][All Lists]
Advanced

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

\w in PS1 hopelessly confuses bash in workdir ending in \


From: dak
Subject: \w in PS1 hopelessly confuses bash in workdir ending in \
Date: Wed, 6 Aug 2008 16:24:16 +0200 (CEST)

Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i486' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2 -Wall
uname output: Linux lisa 2.6.24-20-generic #1 SMP Mon Jul 28 13:49:52 UTC 2008 
i686 GNU/Linux
Machine Type: i486-pc-linux-gnu

Bash Version: 3.2
Patch Level: 39
Release Status: release

Description:

\w in PS1 prompt string confuses bash when ending in \

        The standard prompt setting in ubuntu is
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$"

which seems harmless enough.  However, if you do

mkdir /tmp/chaos\\ ; cd /tmp/chaos\\

the prompt display hopelessly confuses bash.  At first it displays
nothing at all, then with repeated entries of RET fragments of color
ANSI sequences appear, like

dak@lisa:/tmp/xxx$ mkdir /tmp/chaos\\ ; cd /tmp/chaos\\
]0;dak@lisa: /tmp/chaos\007dak@lisa:/tmp/chaos\$ 
]0;dak@lisa: /tmp/chaos\007dak@lisa:/tmp/chaos\$ 

Repeat-By:

See above.

Fix:

Unknown.




reply via email to

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