Package: bash Version: 3.1-2 Severity: normal
I just upgraded to this version of bash (I'm sorry I don't know what I was running before - whatever was in testing a couple of months ago) and now my PS1 is broken. My PS1 looks like this: PS1='$(r=$?; [ 0 == $r ] || echo "\[\033[33m\]$r\[\033[0m\] ")[EMAIL PROTECTED]:\w\[\033[32m\]\$\[\033[0m\] ' Which looks like this, without the color: [EMAIL PROTECTED]:~$ ^ The caret indicates where the cursor lies. Now, after upgrading, the prompt looks the same but the caret has moved [EMAIL PROTECTED]:~$ ^ or 1 [EMAIL PROTECTED]:~$ ^ If I remove the escape sequences (which give a little color), it behaves normally. If I leave the escape sequences but remove the \[\] pairs, the cursor goes in the right place (but wouldn't that break line wrapping?). It doesn't matter what terminal emulator I am using (or indeed whether I ssh in). Downgrading to version 2.05b-26 restores correct behavior. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing'), (500, 'stable'), (50, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages bash depends on: ii base-files 3.1.9 Debian base system miscellaneous f ii debianutils 2.15.2 Miscellaneous utilities specific t ii libc6 2.3.5-8 GNU C Library: Shared libraries an ii libncurses5 5.5-1 Shared libraries for terminal hand bash recommends no packages. -- debconf-show failed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]