Bug#352234: bash: PS1 with escape sequences suddenly broken

2006-02-10 Thread Hans Fugal
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-files3.1.9  Debian base system miscellaneous f
ii  debianutils   2.15.2 Miscellaneous utilities specific t
ii  libc6 2.3.5-8GNU 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]



Bug#352234: bash: PS1 with escape sequences suddenly broken

2006-02-10 Thread Justin Pryzby
On Thu, Feb 09, 2006 at 07:25:05AM -0700, Hans Fugal wrote:
 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
You might have a /var/log/dpkg.log which is written by default in new
versions of dpkg.

Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#352234: bash: PS1 with escape sequences suddenly broken

2006-02-10 Thread Hans Fugal
Ok, if I'm reading this right I upgraded from version 3.0-16

2006-02-09 00:12:28 upgrade bash 3.0-16 3.1-2

On Fri, 10 Feb 2006 at 10:53 -0500, Justin Pryzby wrote:
 On Thu, Feb 09, 2006 at 07:25:05AM -0700, Hans Fugal wrote:
  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
 You might have a /var/log/dpkg.log which is written by default in new
 versions of dpkg.
 
 Justin
 

-- 
Hans Fugal ; http://hans.fugal.net
 
There's nothing remarkable about it. All one has to do is hit the 
right keys at the right time and the instrument plays itself.
-- Johann Sebastian Bach


signature.asc
Description: Digital signature