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". -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.32-trunk-686 (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages base-files depends on: ii base-passwd 3.5.22 Debian base system master password ii gawk [awk] 1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr ii mawk [awk] 1.3.3-15 a pattern scanning and text proces base-files recommends no packages. base-files suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org