reassign 576476 bash
thanks

Hello Matthias.

The submitter of this bug explains a problem he has, and a solution he
found. However, if there is a problem at all, then it seems to be a
bug in bash. For this reason I am reassigning the bug to bash.

Thanks.

---------- Forwarded message ----------
From: Jamie Thompson <bugs.deb...@jamie-thompson.co.uk>
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Date: Mon, 05 Apr 2010 01:27:30 +0100
Subject: Bug#576476: base-files: Default root prompt breaks line wrapping in
    putty terminal

Package: base-files
Version: 5.1
Severity: minor
Tags: patch

I've noticed for some time that line-wrapping in my root account seems to break
(it overwrites the same line as if no line feed was being sent) when connecting
to my Debian machines using putty. I have since found that this can be caused
by including non-printable control characters in the prompt, which must then be
enclosed in escaped square brackets so that bash can calculate line wrapping
properly. Strangely however, if an empty pair are added at the beginning of
root's prompt, wrapping seems to work as it should.

e.g. /root/.bashrc has "export PS1='\h:\w\$ '" and changing this to
"export PS1='\[\]\h:\w\$ '" fixes the line wrapping for me, which makes no
sense given what I read (and mentioned above) previously, but there you go.

Apoligies if base-files isn't the correct place to report this, but as the file
/root/.bashrc is copied from /usr/share/base-files/dot.basrc, I thought this
may be the correct place. The same prompt that needs these brackets is also
found in /etc/profile.

If this is instead a bug in bash or indeed putty, sorry!

Additionally, I'm running with ncurses-term installed and putty set to report
itself termtype as "putty".

[...]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to